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
Run any command that reads go.mod, for example, go list -m all.
What did you expect to see?
Parse error in go.mod.
What did you see instead?
No error.
We check the version string using regexp.MatchString with the regular expression ([1-9][0-9]*)\.(0|[1-9][0-9]*). MatchString just checks the version string contains a string matching that expression. It can contain junk before and after.
The text was updated successfully, but these errors were encountered:
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?
Write the go.mod file below:
Run any command that reads go.mod, for example,
go list -m all
.What did you expect to see?
Parse error in go.mod.
What did you see instead?
No error.
We check the version string using
regexp.MatchString
with the regular expression([1-9][0-9]*)\.(0|[1-9][0-9]*)
.MatchString
just checks the version string contains a string matching that expression. It can contain junk before and after.The text was updated successfully, but these errors were encountered: