proposal: go install -o
(support specifying the path name/directory more directly) - multi arch CI concern
#52898
Labels
Milestone
In order to take advantage of the new BuildInfo it's ideal (imo) to replace the before classic best practice:
go build
with-ldflags -X main.version=1.2.3
bygo install pkg@v1.2.3
But
go install
doesn't simply let you specify where to install the binary. It puts it in GOPATH/bin when on the native architecture and GOPATH/bin/$arch/ when not; which makes it hacky and hard to just produce the binaries in a multi arch CIsExample: before:
after/now
I end up having to use GOPATH to try to set where the binary ends up as well as using some hacks to deal with native vs non native arch
Let me know what you think
The text was updated successfully, but these errors were encountered: