GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
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?
to your account
The PkgPath field for embedding the universal "error" type is being set to "go.builtin". It should be "main".
Related to #21696.
Actually, this applies to all builtin types, not just error.
Change https://golang.org/cl/60410 mentions this issue: cmd/compile: fix and improve struct field reflect information
cmd/compile: fix and improve struct field reflect information
I think this is a duplicate of #21122
@dsnet Certainly related at least. CL 60410 changes S1.x's PkgPath from "" to "main".
Ah, you're right. Definitely related, but different. Lot's subtleties around StructField.PkgPath it seems...