-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
mysteriously (incorrectly?) downgrades a dependency for no reason I can find
#60588
Comments
resolved on tip. |
Please re-open - not resolved. As I said there is no conflict, because, as I said at the end of the initial message:
|
@Nasfame I don't see that message when I run that command! Have you any special settings in your environment to make it be displayed? |
Um, actually, did you run that command exactly as it is shown in your screenshot? Because it's broken - it's missing a
|
@Nasfame I suppose you're trying to help but so far you've convinced @seankhliao to close this issue based on a suggestion that doesn't help, and followed it up with a screenshot that can't be reproduced. Could you get this issue reopened please? |
As mentioned above, this was fixed on tip (current HEAD) of repo. |
Ah, thank you for clarifying. Is there any more information available on what caused the unexpected downgrades? |
I observed the same problem while updating https://github.com/AlexanderYastrebov/noleak that itself has no dependencies:
and I can confirm that tip does not downgrade but I could not figure out a specific fix commit from the git log. |
Used go version go1.21rc3 linux/amd64 to update dependencies because go1.20.6 unexpectedly updates unrelated dependencies, see golang/go#60588 (comment) Closes #2465 Closes #2486 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Used go version go1.21rc3 linux/amd64 to update dependencies because go1.20.6 unexpectedly updates unrelated dependencies, see golang/go#60588 (comment) Closes #2465 Closes #2486 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
No output and no changes caused by the
go get
command, as it is just re-stating an arbitrary existing module that is already present ingo.mod
already, at the version it is already present at.What did you see instead?
I am confused, I have no idea why Go is deciding to downgrade a seemingly unrelated module.
Considering the named module on the
go get
command line did not change version at all, it doesn't make sense to me thatgo get
should be enforcing other up/downgrades.Additionally, if I run:
to have
go get
undo the spurious change, then it does so:without making any other changes, thus showing there is not a pre-existing dependency conflict.
The text was updated successfully, but these errors were encountered: