cmd/go: error on invalid package name #67115
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
1.22.2
Output of
go env
in your module/workspace:What did you do?
Unintentionally, I used - (hypen) in the package name.
Run
go generate ./...
What did you see happen?
Nothing happens. No output, no error.
go generate silently ignored the //go:generate instruction in the file with invalid package identifier
What did you expect to see?
I expected to see an error indicating the invalid package name.
The text was updated successfully, but these errors were encountered: