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: in mod 'go get' some module's version taged not from master branch failed #36599
Comments
I'm not sure about it, guess it's due to difference branch |
This error message indicates that the
It looks like However, You may want to try setting I'm not sure why Closing because this doesn't seem like a bug in the Go toolchain. The golang-nuts mailing list or the |
new update: I tag a new version and repush another thing, In my mind set which should act as should act as |
We can't really tell what's going on without a complete example.
It's important that there's a distinction between https://goproxy.io specifically recommends setting it up this way, too:
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
not clear
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
first step
I create a module
git.mycompany.com/myproject/scaffold
and make a version
v0.0.1
bygit tag
in dev branchand make a version
v1.1.0
in master branchand push them to my company's gitlab
secod step
I create a projet which import my module
git.mycompany.com/myproject/scaffold
run
go mod init myproject
at root dirI try get
v0.0.1
failed, butv1.1.0
successWhat did you expect to see?
v0.0.1
andv1.1.0
supposed both successWhat did you see instead?
The text was updated successfully, but these errors were encountered: