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: internal error: go list gives conflicting information #34294
Comments
I cannot reproduce at commit 396d625, so maybe I can bisect if I have time. |
That message implies that in a single call to |
Yes, I have a main_test, though I tried deleting the file and moving the test contents to acme/server/src/server_test.go and was still able to reproduce. I'm bisecting now. |
I really need to see the go list invocation and what it prints to work out why |
|
So if you run that third command by hand, it should print a whole bunch of JSON for us? |
Yes, I don't feel super comfortable pasting the output in a public channel though. I will mail to the email address in your profile shortly. |
Just sent. |
After talking to you offline it is a duplicate of #34321 so I am going to close this bug in favor of that one. Thanks for all your help isolating this! |
Note for future people getting this error, for example while running golangci-lint: this also happens if you have an import cycle in your packages (including test ones). |
While running staticcheck (at tip) using Go tip (8cc57c0) with x/tools at tip (0240832), I repeatedly got this error message:
I'm using a Mac latest version.
github.com/acme/server/src/cmd/server is a main package that imports
github.com/acme/server/src
and other packages.github.com/acme/server/src
is a library with package namepackage server
.I cleaned every cache I could find and could still reproduce the problem. I could not reproduce using Go 1.13.
Along the way I noticed that some files were importing github.com/BurntSushi/toml and some files were importing github.com/burntsushi/toml. I fixed this problem - using BurntSushi/toml everywhere - but still got the same error afterwards.
That's all the debugging information I have the time to provide at this point, sorry.
The text was updated successfully, but these errors were encountered: