constabulary / gb

gb, the project based build tool for Go
https://getgb.io/
MIT License
2.15k stars 150 forks source link

Rebuild standard library when building with -a and -f #649

Open profer opened 7 years ago

profer commented 7 years ago

This is a workaround for #328 which prevents static builds when target and host have the same GOOS and GOARCH. It does this by considering all packages, including the standard library, as stale when running gb build -a -f. Previously the -f flag ommitted the standard library.

davecheney commented 7 years ago

Not LGTM. We shouldn't need a ForceAll, Force should just mark any standlib packages stale during package resolution.

davecheney commented 7 years ago

Hello,

I've fixed the build for the testing/testmain changes in Go 1.8, #657. Please rebase your change and push again.

Sorry for the delay, I've recently changed jobs.

Thanks

Dave