Closed
Description
go list
reports an error for unknown godebug values. But this error lacks a position:
$ cat go.mod
module example.com/m
go 1.23
godebug foo=1
$ go list .
go: .: unknown godebug "foo"
Compare with the message when there's a syntax error:
> go list .
go: errors parsing go.mod:
go.mod:5: unknown directive: godebg
As a result, gopls does not position this error correctly.
The go command should also position the error correctly in go.work files.
Metadata
Metadata
Assignees
Type
Projects
Status
Done