Skip to content

Instantly share code, notes, and snippets.

@arsham
Last active May 5, 2018 21:01
Show Gist options
  • Save arsham/39e4fb349fe794620f09115cbeb8f2f7 to your computer and use it in GitHub Desktop.
Save arsham/39e4fb349fe794620f09115cbeb8f2f7 to your computer and use it in GitHub Desktop.
Patch guru to work with #golang cgo
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