x/tools/cmd/goimports: does not associate package name with import paths containing dashes #17546
Labels
FrozenDueToAge
help wanted
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
I expect nothing to happen because the source code file is properly formatted according to
gofmt -d <package>
. The package also compiles. So the import paths are correct.What did you see instead?
Note that e.g. package
github.com/xh3b4sd/worker-pool
has apackage workerpool
declaration. The same applies to the other packages removed. They all define package declarations where the dash is removed.The text was updated successfully, but these errors were encountered: