-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/go/packages: panic loading with LoadTypes #31163
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
I noticed this due to a panic in my CI tests. Based on when the CI job failed and a basic test on my machine I think golang/tools@dbeab5a may have introduced a problem. |
Change https://golang.org/cl/170016 mentions this issue: |
I think there is a second related bug, it should be possible to set any of the Need bits and the system will make sure it collects the pre-requisites, the Need bits only say what should be filled in in the output. For this panic to occur it was not correctly getting the sizes when asked for types, like it should. |
Change https://golang.org/cl/170342 mentions this issue: |
This brings in the upstream fix golang/tools@1aadbdf. (Upstream issue is golang/go#31163). To create this commit, I did: vgo get golang.org/x/tools make update_deps cd cmd/golangci-lint go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'" Fixes golangci#500
This brings in the upstream fix golang/tools@1aadbdf. (Upstream issue is golang/go#31163). To create this commit, I did: vgo get golang.org/x/tools make update_deps cd cmd/golangci-lint go install -ldflags "-X 'main.version=$(git describe --tags)' -X 'main.commit=$(git rev-parse --short HEAD)' -X 'main.date=$(date)'" Fixes #500
I'm still seeing this with |
Yes, if you're still seeinig this after golang.org/cl/170342, please open a new bug |
This issue appears to be a recurrence of #26834.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Haven't tried.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Successful package load and some related output.
What did you see instead?
The text was updated successfully, but these errors were encountered: