Skip to content

Extract the import path of Go binaries and rebuild them. No more stale GOROOT.

License

Notifications You must be signed in to change notification settings

joshua/gorebuild

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gorebuild will use DWARF symbols to figure out the import path a Go binary was built with, and will forcefully re-install it.

This is useful for example when changing GOROOT (for example updating Go with Homebrew), since the default GOROOT is embedded in the binary and it's critical for some static analysis tools.

Installation: go get -u github.com/FiloSottile/gorebuild

Usage: gorebuild [-n] [binary ...]

If invoked with -n it will only print the import paths.

If invoked without any arguments, it runs on all files in $GOPATH/bin.

About

Extract the import path of Go binaries and rebuild them. No more stale GOROOT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%