-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/go: cannot load <package>, disallowed version string "" #32636
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
Comments
Is this deliberate or an accidental break? |
I have been encountering the same error in the last couple of days on master. I didn't file an issue because I thought I was doing something silly. Using 1.12.6 let me work around the issue when adding new dependencies. This probably needs more investigation, but for now I'm adding it as a 1.13 release blocker. CC @jayconrod @bcmills |
FWIW, I had a similar same error message and setting GOPROXY=direct fixed the problem. I didn't investigate why. |
Reproduced. Will look into this today. |
@jayconrod The problem is the empty |
Change https://golang.org/cl/182697 mentions this issue: |
The above CL seems to fix the issue in my projects. Thanks! |
@zikaeroh Thanks for verifying, and thanks for reporting the issue. The fix is merged now. Sorry for the break. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not in 1.12.5, yes on tip.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go.mod
:main.go
:Run
go build
.What did you expect to see?
No errors on building, dependencies populated, etc.
What did you see instead?
go build
fails with:Running
go mod tidy
always outputs:go build
in 1.12.5 works fine, along withmod tidy
, etc.The text was updated successfully, but these errors were encountered: