-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mod/module: CheckPath validation inconsistent for invalid major-version suffixes #33429
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
Comments
That package contains a lot of code. Which function in particular are you concerned about? Note that many of the functions in that package are now available as |
@bcmills thanks for your reply, it's the case set
|
The intent is for the path suffix to include only the major version, since minor-version updates to that path will all be compatible. (So the path should be So the error for Do you have concrete examples of paths of either form in the wild? CC @jayconrod @hyangah @heschik @katiehockman |
from the implementation, all version-like suffix and the format is not need to strictly fit the semver, so may all version-like format "/vX.Y[.Z]...-SOMETHING` should be avoided?
No, totally imagined, :) |
@bcmills any news about this issue? does some more discussion need about how to address it? |
(CC @matloob) |
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?
i'm not quit sure whether it's a bug cause i can not find the spec about it, reading the code in
src/cmd/go/internal/module
,i think about a case like
x.y/z/v2.0.0-pre
for versions with prerelease tag, whether it should get the same checking result withx.y/z/v2.0
,for now, they get results like following:
if this case make sense, i would like to push a PR to fix it, thanks.
The text was updated successfully, but these errors were encountered: