-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/cmd/goimports: Handle ambiguous import properly #9197
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Yes this is the exact code I used (admittedly the code is broken) $ cat test.go package main func main() { template.New } (.py3kvenv)ych@ych-linux1 ~ $ goimports -d test.go diff test.go gofmt/test.go --- /tmp/gofmt702883055 2014-12-02 15:12:30.084992075 -0800 +++ /tmp/gofmt533762434 2014-12-02 15:12:30.084992075 -0800 @@ -1,5 +1,6 @@ package main +import "html/template" func main() { template.New |
Should the current behavior be preserved for non-stdlib packages in |
mikioh
changed the title
go.tools/cmd/goimports: Handle ambiguous import properly
cmd/goimports: Handle ambiguous import properly
Jan 22, 2015
rsc
changed the title
cmd/goimports: Handle ambiguous import properly
x/tools/cmd/goimports: Handle ambiguous import properly
Apr 14, 2015
i have the same question. i import two third-party packages (A and B). A and B use the same package C. but there is different version C in the go.mod of A and B. |
seankhliao
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Jul 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
by cnyegle:
The text was updated successfully, but these errors were encountered: