-
Notifications
You must be signed in to change notification settings - Fork 18.1k
x/tools/go/packages: Unexpected package creation during export data loading (load generic package) #51629
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
cc @matloob |
Might be related to #45218. |
Updates #4194 Signed-off-by: David Anderson <[email protected]>
honk Updates #4194 Signed-off-by: David Anderson <[email protected]>
Updates #4194 Signed-off-by: David Anderson <[email protected]>
Updates #4194 Signed-off-by: David Anderson <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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: |
This reverts commit 2a412ac. Updates #4194 Change-Id: I0098b66b71d20bea301ca79058c1cdd201237dd0 Signed-off-by: Brad Fitzpatrick <[email protected]>
This reverts commit 2a412ac. Updates #4194 Change-Id: I0098b66b71d20bea301ca79058c1cdd201237dd0 Signed-off-by: Brad Fitzpatrick <[email protected]>
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? |
This issue has been closed, but still facing the same issue when using |
Uh oh!
There was an error while loading. Please reload this page.
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: