-
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
Updates to go.mod needed #68076
Comments
We don't use GitHub for discussions or questions. Please use a forum instead. See https://go.dev/wiki/Questions. Thanks. If you are absolutely certain that this is a bug, you will need to explain how to reproduce the problem. We won't be able to do anything without that sort of information. |
@ianlancetaylor This is not a discussion. To reproduce the bug install the version: But I need 0.40.1 |
I am able to build a project which imports quic-go at version v0.40.1 with no trouble. We'll need more info. |
@randall77 Project - gomobile
I see it in go.mod |
bandicam.2024-06-20.00-50-08-883.mp4I literally can't do anything. Even in Goland. |
Returns no result. What am I missing? |
@randall77 Okay. Use the project https://github.com/libp2p/go-libp2p |
And I can't not update the version on the command line and in Goland. So the problem is in Go. |
Sure enough, 0.43.0 is required by that module. Your |
If you really want to use an earlier version of |
@randall77 Okay. Thank you! But there has to be some kind of message here, I think. From the programmer's side, it seems that Go dictates the version to be used. And it's very time-consuming. |
Go is not doing the dictating. Your dependencies are doing the dictating.
We're open to suggestions. I think changing the selection algorithm is out of the question, but possibly there could be a tool (maybe a mode of go mod tidy?) that describes why it is picking that version. It was pretty easy for me to do that with |
@randall77 It is necessary to display the message in the command: |
@randall77 Or at least some kind of go mod tidy mode that will display a log of its work. |
Otherwise, the programming looks very strange #68076 (comment) |
The $ go build
go: updates to go.mod needed; to update it:
go mod tidy For what you're experiencing, I think that should be a bug report to GoLand for better feedback on changing to incompatible versions. |
If you actually used the command line to use the lower version, it would have performed all the necessary downgrades for you: $ go get github.com/quic-go/[email protected]
go: downloading github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
go: downloading github.com/google/pprof v0.0.0-20240207164012-fb44976bdcd5
go: downloading golang.org/x/time v0.0.0-20181108054448-85acf8d2951c
go: downloading github.com/quic-go/webtransport-go v0.6.0
go: downgraded github.com/quic-go/quic-go v0.43.0 => v0.41.0
go: downgraded github.com/quic-go/webtransport-go v0.8.0 => v0.6.0 |
This is too complicated for Android programmer. And I use gomobile, which recommends me to use : go get golang.org/x/mobile/bind to synchronize components. |
Go version
1.22.1
What did you do?
I'm trying to compile a project.
And I want to use github.com/quic-go/quic-go v0.40.1
The compiler tells me that I can't use this version and I have to update it to at least 0.43.0
I don't need that. And I want to use 0.40.1 version.
Why does the program dictate to me what version I should use????
The text was updated successfully, but these errors were encountered: