Last active
May 5, 2018 21:01
-
-
Save arsham/39e4fb349fe794620f09115cbeb8f2f7 to your computer and use it in GitHub Desktop.
Patch guru to work with #golang cgo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $GOPATH/src/golang.org/x/tools | |
git remote add cgo [email protected]:FrankReh/tools.git | |
git merge cgo/current | |
cd cmd/guru | |
find . -type f -print0 | xargs -0 sed -i 's/guru "github\.com\/frankreh\/tools\/cmd\/guru"//g' | |
find . -type f -print0 | xargs -0 sed -i 's/import "github\.com\/frankreh\/tools\/cmd\/guru"//g' | |
go install | |
# back to original | |
git reset origin/master --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment