-
Notifications
You must be signed in to change notification settings - Fork 15
v0.3.0 tag causes problems with go module updates #1
Comments
The code here is ready, and it's already used by quic-go master. It's correctly tagged according to semver (it has breaking changes, so it's a minor version bump). The problem is the Go tooling. |
It's also not possible to remove tags, again, thanks to the Go tooling (it's cached by the Go proxy). |
It's not yet released, right? I'll just live with it, until a new version of quic-go is released, then. |
Just wanted to chime in that I ran into the same thing doing a I suppose the better way to update is to replace the version in the main go.mod then run Also fyi @marten-seemann there is a 'retract' directive that can be used (and something I personally forget about now and then), not sure if it would help in this situation though. In the meantime if anyone else runs into this, in your main module just modify the line |
I really don't know how to solve this. This is a problem with the Go tooling, not with any of the repos here. qtls v0.3.0 will be used by quic-go v0.37.0 (and it already is used by master). v0.3.0 is totally fine, which is why I cut the release. It contains breaking changes, so it's a minor version bump, as per semver rules. I needed the release to merge the corresponding commit into quic-go master (otherwise I would've had to import an untagged commit). It would feel like an abuse of retractions to retract a perfectly fine release. Also keep in mind that in general, a (transitive) dependency might be provided by a third party. It needs to be possible for that dependency to release a new version with breaking changes, without the Go toolchain breaking everyone. |
I agree this likely isn't something that needs "solving" :) was just pointing out it happened to more than one individual and (then provided) a simple enough solution for those that happen to find this issue. Really the only confusing part was finding which transitive dependency was the "issue". Maybe a temporary link in the readme of https://github.com/quic-go/quic-go pointing to this issue would suffice, at least until v0.37 (again, I know neither module is the problem, v0.37 will simply "solve" it as v0.3 of this module is required at that point and if someone makes the mistake we did, it will still build). |
quic-go v0.37.0 was just released. I hope that makes this problem occur less often... |
Letting my go projects update to v0.37.0 (actually v0.37.1, since I was asleep at the wheel for a few weeks!) works for me. Closing this issue! |
It seems there's a v0.3.0 tag on this repo, but the code seems to not be ready. When I update modules (perhaps a little too heavy-handed) with
go get -u ./...
it always tries to pull in this newer version:but it fails to compile:
Am I doing something wrong? Or could this tag be removed until it is ready, so to not confused go module updates?
The text was updated successfully, but these errors were encountered: