-
Notifications
You must be signed in to change notification settings - Fork 18k
x/{tools,net}: importer: inconsistent definition for type #15491
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
Comments
This is related to the new importer (the panic says: "importer: ...). So, no, this is not related to the change you're suspecting. Try (You have compiled the std library with |
@griesemer yeah that works, after |
I can reproduce this. It appears to happen when the std lib is compiled with
Analysis: The original error report (inconsistent definition...) is likely due to incorrect *Symbol setup in the compiler (wrong package). The 2nd error (empty package...) may be related. |
The 2nd error is due to _ (blank) parameters exported incorrectly (fix in progress, with some luck over the weekend). |
@griesemer Good to hear, when you push it to Garret, tag me as a reviewer and I'll give it a test. oneofone x gmail |
CL https://golang.org/cl/22714 mentions this issue. |
@OneOfOne The above change fixes the problem as far as I can tell. Please comment here if you see otherwise. Thanks. |
@griesemer I tested it with a clean $GOPATH/pkg, seems to fix the bug and works fine with all the packages that used to be broken. 👍 |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version devel +d8d3351 2016-04-29 16:20:18 +0000 linux/amd64 (compiled with GO_GCFLAGS "-newexport=0" to support gocode).
go env
)?go get -u golang.org/x/tools/...
no error
The apocalypse, the sky started falling, the rivers turned red, and then this destroyed my terminal:
https://gist.github.com/OneOfOne/5cc8d8dd3230e35bf3083e9c7ceee1c5
I can't bisect now but I'd almost bet it has something to do with fa9435c
The text was updated successfully, but these errors were encountered: