go get mysteriously (incorrectly?) downgrades a dependency for no reason I can find
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
The go get command is used to add dependencies or update existing dependencies in a Go module. In this case, it seems that the go get command encountered a conflict between the requested version of github.com/hashicorp/errwrap (v1.1.0) and the existing version of github.com/google/tink/go (v1.7.0). As a result, it downgraded the github.com/google/tink/go module to resolve the conflict.
If you want to avoid such downgrades, you can specify the specific versions of the dependencies in your go.mod file to ensure that the desired versions are used. Alternatively, you can use Go modules' replace directive to override the dependency versions explicitly.
Please re-open - not resolved.
As I said there is no conflict, because, as I said at the end of the initial message:
Um, actually, did you run that command exactly as it is shown in your screenshot? Because it's broken - it's missing a
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.