Skip to content

x/tools/gopls: investigate better support for CGO_ENABLED=0 #65758

Open
@findleyr

Description

@findleyr

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.

Metadata

Metadata

Assignees

Labels

ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @adonovan@gopherbot@findleyr

      Issue actions

        x/tools/gopls: investigate better support for CGO_ENABLED=0 · Issue #65758 · golang/go