You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We add the +incompatible suffix after resolving the tag to what we call a “canonical” semantic version string (that is, one without metadata). v2.9.2+sylr.2 is not canonical, so the go command doesn't know what to do with that suffix.
Due to the fix for #31713, v2.9.2+sylr.2 (without the +incompatible suffix) should work in Go 1.13.
There is kind of a funny interaction with #27171 and #29262 here, though: we should resolve the tag to a pseudo-version starting with v2.9.2- and ending with +incompatible, but today we are resolving it to a pseudo-version with a v0.0.0- prefix.
$ go list -f '{{.Version}}' -m github.com/sylr/[email protected]+sylr.2
go: finding github.com/sylr/prometheus v2.9.2+sylr.2
v0.0.0-20190510132036-085fc219838d
I've retitled #29262 to include this example. I think that makes this a duplicate of #31713 (which is fixed) and #29262 (which is not). Thanks for the report — this is an interesting example to consider.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Trying to compile https://github.com/improbable-eng/thanos with a dependency replacement, i.e.:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: