New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean.bash: GOBIN should be unset #36659
Comments
If Because bash The following change will resolve the issue:
|
Change https://golang.org/cl/215478 mentions this issue: |
@nikson I think using What happens if in
|
@nikson, you are right sorry. I was assuming that |
The
The real problem here, I think, is that |
A As an example, from https://codereview.appspot.com/2043041, and in detail, from |
Bash scripts either unset
I've sent another revision with the updated commit message. |
As a 10 year Go user I was just bitten by NOT having GOBIN work as expected. Let me ask a related question. Is it a goal (still a goal) that a single GOROOT support multiple GOOS and GOARCH combinations? I always assumed it does because tools go in Let me explain the environment I am trying to set up. I want to have a single set of directory pairs that define my go environment. One directory for ${GOROOT} and one for ${GOPATH}. In one case I use these directories locally on my Mac to compile and deploy on Mac ("darwin_amd64"). In another case I mount these directories in a Docker linux container and deploy on Linux ("linux_amd64)". Everything is in sync. Same version of go, same tools, same source code and packages. Everything is self contained. That last statement is worth something right? By not supporting GOBIN, which was supported for a long time, the decision has effectively been made to eliminate support for multiple multiple GOOS and GOARCH combinations in a single GOROOT and something has been lost. My proposal is as follows: |
This issue is the same as the one reported in #14340.
In the Go git repository I was trying to clean all the artifacts generate by a previous
make.bash
, but the command failed since it tried to search thego
binary in my $GOBIN.GOBIN
should be unset, andgobin
should probably be redefined asThe text was updated successfully, but these errors were encountered: