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

cmd/go: 'go get github.com/Azure/azure-sdk-for-go@v5.0.0-beta' silently gets 'v20.1.0' instead #27627

Closed
bcmills opened this issue Sep 11, 2018 · 2 comments
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Sep 11, 2018

Found while investigating #27457.

$ cd $(mktemp -d)

$ go mod init example.com
go: creating new go.mod: module example.com

$ go get github.com/Azure/azure-sdk-for-go@v5.0.0-beta

$ go list -m all
example.com
github.com/Azure/azure-sdk-for-go v20.1.0+incompatible

$ go version
go version go1.11 linux/amd64

$
@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. modules labels Sep 11, 2018
@bcmills bcmills added this to the Go1.12 milestone Sep 11, 2018
@bcmills bcmills self-assigned this Sep 11, 2018
@thepudds
Copy link
Contributor

thepudds commented Oct 6, 2018

@bcmills I don’t know if you’ve had a chance to look at this much yet, but do you have an initial guess or sense of what might be going on here, or maybe a guess around possible correlating factors, etc.?

@bcmills
Copy link
Contributor Author

bcmills commented Dec 12, 2018

The underlying cause here is the same as #29121: if the requested package isn't found in the requested version, we're falling back to latest instead of emitting an error as we should.

@bcmills bcmills closed this as completed Dec 12, 2018
@golang golang locked and limited conversation to collaborators Dec 12, 2019
@rsc rsc unassigned bcmills Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants