This test basic gopls functionality in a workspace with a godebug
directive in its modfile.

We use panicnil from go1.21 as an arbitrary GODEBUG; if it goes away,
pick another from https://go.dev/doc/godebug#history.

-- flags --
-min_go_command=go1.23

-- a/go.work --
go 1.23

use .

godebug (
	panicnil=0
)
godebug panicnil=1

-- a/go.mod --
module example.com/a

go 1.23

-- a/a.go --
package a

import "example.com/a/b"

const A = b.B //@def("B", B)

-- a/b/b.go --
package b

const B = 42 //@loc(B, "B")

-- format/go.work --
go 1.23 //@format(formatted)

use .

godebug (
panicnil=0
)
godebug     panicnil=1

-- @formatted --
go 1.23 //@format(formatted)

use .

godebug (
	panicnil=0
)

godebug panicnil=1
-- format/go.mod --
module example.com/format

go 1.23

-- format/p.go --
package format
