-
Notifications
You must be signed in to change notification settings - Fork 18k
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
cmd/go: mod init should not infer a path with a /v1 suffix #73121
Labels
BugReport
Issues describing a possible bug in the Go implementation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
GoCommand
cmd/go
Milestone
Comments
The inferred path should be checked go/src/cmd/go/internal/modload/init.go Lines 1078 to 1084 in 4c32b1c
|
go mod init
cannot init v1
suffix module, but can infer go module path
do you want to send a change? |
I will try |
Change https://go.dev/cl/662438 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BugReport
Issues describing a possible bug in the Go implementation.
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
GoCommand
cmd/go
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
In ${GOPATH}/src
What did you see happen?
go mod init example.com/project/v1
failedgo mod init
successWhat did you expect to see?
Refer the
go mod init example.com/project/v1
error,go mod init
should failed too.The text was updated successfully, but these errors were encountered: