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: no matching versions for query when branch starts with v\d #57122

Closed
switchupcb opened this issue Dec 6, 2022 · 1 comment
Closed

Comments

@switchupcb
Copy link

What version of Go are you using (go version)?

$ go 1.19

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOPROXY=https://proxy.golang.org,direct

What did you do?

https://go.dev/ref/mod#version-queries

The following works (tag-specifier).

go get github.com/switchupcb/dasgo@v0.10.1

The following doesn't work (branch-specifier).

go get github.com/switchupcb/dasgo@v10
go: github.com/switchupcb/dasgo@v10: no matching versions for query "v10"

The following works (branch-specifier).

go get github.com/switchupcb/dasgo@main

There is no "main" branch, however the main branch represents a branch named v10.

What did you expect to see?

go get works with the v10 branch-specifier.

What did you see instead?

no matching versions for query "v10"

@seankhliao
Copy link
Member

Duplicate of #29731

@seankhliao seankhliao marked this as a duplicate of #29731 Dec 6, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2022
@golang golang locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants