Skip to content
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

Should rely on GOBIN #13

Open
fgm opened this issue Oct 15, 2021 · 0 comments
Open

Should rely on GOBIN #13

fgm opened this issue Oct 15, 2021 · 0 comments

Comments

@fgm
Copy link

fgm commented Oct 15, 2021

h2. Description

In current Go versions, the target for Go binaries is defined by GOBIN if it is not empty, not GOPATH[0]/bin as used to be the case.

This causes current setups with a GOBIN not matching the old default value to fail, as binstale is no longer looking at the proper location.

h2. Suggested fix

Look in GOBIN first if it is not empty, then fallback to the legacy use of GOPATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants