-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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/go/packages: Unexpected package creation during export data loading (load generic package) #51629
Comments
cc @matloob |
Might be related to #45218. |
Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
honk Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Incidentally, simplify the go generate CI workflow, by marking the dnsfallback update non-hermetic (so CI will skip it) rather than manually filter it out of `go list`. Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Incidentally, simplify the go generate CI workflow, by marking the dnsfallback update non-hermetic (so CI will skip it) rather than manually filter it out of `go list`. Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Incidentally, simplify the go generate CI workflow, by marking the dnsfallback update non-hermetic (so CI will skip it) rather than manually filter it out of `go list`. Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Incidentally, simplify the go generate CI workflow, by marking the dnsfallback update non-hermetic (so CI will skip it) rather than manually filter it out of `go list`. Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Incidentally, simplify the go generate CI workflow, by marking the dnsfallback update non-hermetic (so CI will skip it) rather than manually filter it out of `go list`. Updates #4194 Signed-off-by: David Anderson <danderson@tailscale.com>
Had a similar panic when running gosec action during GitHub workflow on a 1.18 project:
|
Same issue when using |
I've found workaround for this issue: reillywatson/tools@50e5cab |
Change https://go.dev/cl/400034 mentions this issue: |
It looks like this has been fixed which is why this is marked closed. However, there isn't yet a release with this fix. Can we expect a new release tag soon so we don't have to build our own stringer to get things working? |
Update x/tools to pick up fix for golang/go#51629
This issue has been closed, but still facing the same issue when using |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Load type and type info from a generic package.
github repo: https://github.com/tsh96/reproducing-go-generic-load-packages-error
main.go
g/util.go
go.mod
What did you expect to see?
Nothing, success.
What did you see instead?
An unexpected package package named
go.shape
is added to theview
after following line of code:https://github.com/golang/tools/blob/198cae37294c48f180c54b9f66617d821e185fdc/go/packages/packages.go#L1209
The text was updated successfully, but these errors were encountered: