News for hackers. Stuff that matters.
Re:Compile Go programs 7x faster by nickcw on Wednesday August 10, 2016 @07:55AM (#12260956)
Yes, never use go build, always use go install!

go build builds everything, whereas go install does an incremental build on the stuff that has changed and installs it (either in GOPATH/bin or GOPATH/pkg).

Re:Compile Go programs 7x faster by ithkuil on Wednesday August 10, 2016 @09:43AM (#12261627)
FYI, there is also `go build -i`, which is behaves like `go build` in terms of what executable artefacts it produces and where it puts them (i.e. it doesn't install stuff in $GOPATH/bin) but preserves object files for all the dependent packages like `go install` does
Re:Compile Go programs 7x faster by jjnoakes on Wednesday August 10, 2016 @08:51AM (#12261248)
Why does "go build" build more than what is necessary for "go install"?

Shouldn't "go build" just do incremental builds and be faster across the board?