Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: list -json -cgo omits Imports in files generated by cgo #26136
When the -cgo flag is enabled, go list processes Go source files that import "C" and lists the resulting generated files. However, the Imports list continues to contain "C" and does not reflect the actual imports of the generated files: unsafe, runtime/cgo, syscall.