-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.release-blocker
Milestone
Description
In Go 1.18, the GoVersion
was added to go/types.Config
(proposal: #46648). This field configures the Go language version, as would be passed to the compiler via -lang
, and read by the Go tool from the go
directive in the go.mod
.
This means that gopls can now match compiler type-checking errors exactly, by setting Config.GoVersion
based on the applicable go.mod
file. We should do this for 1.18, as it will be common for users to write generic code with gopls, only to be surprised when they get errors from the go
command due to their go.mod
file.
This is also a critical component of using gopls
built with a recent version of Go to target building at an older Go version.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.release-blocker