cmd/go: modules are rejected if any filename has a trailing .
#62411
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Unfortunate
Milestone
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?
Trying to import a package using
go mod tidy
that contains a test file containing trailer.
https://github.com/chinmayb/notepad/blob/v0.0.1/pkg/default.test.
Trying to import
/pkg
elsewhere results in errorWhat did you expect to see?
No error and ignore non go files for the trailing
.
What did you see instead?
go mod tidy
fails.sample go.mod file
go mod tidy
Fails with below error
The text was updated successfully, but these errors were encountered: