This is a speculative issue: we may be able to improve support for working with CGO_ENABLED=0 (or GOOS=..., as is set automatically by the solution to #29202).
For example, we could investigate using https://pkg.go.dev/go/types#Config.FakeImportC. I don't yet know if this is feasible, but it could make gopls more usable in scenarios where a c toolchain is unavailable, or prohibitively slow.
This is a speculative issue: we may be able to improve support for working with
CGO_ENABLED=0(orGOOS=..., as is set automatically by the solution to #29202).For example, we could investigate using https://pkg.go.dev/go/types#Config.FakeImportC. I don't yet know if this is feasible, but it could make gopls more usable in scenarios where a c toolchain is unavailable, or prohibitively slow.