Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: v1.2 module query matches pre-v1.2 versions #31972
Version queries like @v1.2 are handled by this code in cmd/go/internal/modload/query.go:
matchSemverPrefix("v1.2", "v1.2.0-prerelease") is true but probably should be false, because semver.Compare("v1.2", "v1.2.0-prerelease") < 0.