Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/goimports: does not associate package name with import paths containing dashes #17546
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Apparently this was already fixed by #16402
@jmrodri, that's not a complete bug report. Got a minimal program to demonstrate it? And does those already exist on disk? And is your GOPATH set?
I'm guessing people either need to update their goimports binaries, or the reason that your imports are being deleted is because either your GOPATH is wrong, or you simply don't have the "github.com/foo/go-some-hyphen-package" checked out on disk, so goimports is unable to tell that "go-some-hyphen-package" is really "somehyphenpackage" or whatever, so it deletes it, looking like it's unused.
Without a more complete bug report, I'm not sure what to do here.
Could somebody reopen this or a new bug report if this is still occurring?
I'm guessing it's fixed.