-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: go get <package> doesn't resolve build issues #44747
Comments
@pauldthomson could you try
|
@davecheney that doesn't seem to be a valid flag? |
@pauldthomson my mistake, the original source of the advice is here, #44129 (comment) maybe
|
@davecheney same thing, not a valid flag:
No flags for that command it seems:
And for the
Also tried the env var as per #44129 (comment) ( |
To clarify, |
@pauldthomson, I'm not able to reproduce this failure mode using https://golang.org/dl/go1.16 and a clean module cache. I suspect that you are seeing the same issue as #44749.
|
@pauldthomson I was also unable to reproduce this and suspect you're seeing the same issue as in #44749. To confirm, could you check if this file is present:
If that file exists, what other files are in the same directory? |
😬 I went for a scorched earth policy and blew away my |
No worries, let's close this then. If you see this happen again, and the fix for #44749 doesn't work for you, please comment, and we'll re-open and investigate further. |
FWIW I seem to be able to reproduce the behaviour as per your comment on #44749. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Brand new module with a dependency to
github.com/prometheus/client_golang/prometheus
addedrun
go mod tidy
run
go build .
prompt for missing dependency with suggestion to fix:
follow instructions:
run
go build .
again:Issue persists. Can be fixed by running
go build -mod=mod .
What did you expect to see?
Build worked after running suggested
go get
What did you see instead?
Build still failed
Sample repo: https://github.com/pauldthomson/go-1_16-issue
The text was updated successfully, but these errors were encountered: