Files
burrowers-garble/testdata/script/list_error.txtar
Daniel Martí 30357af923 drop Go 1.22 and require Go 1.23.0 or later (#876)
This lets us start taking advantage of featurs from Go 1.23,
particularly tracking aliases in go/types and iterators.

Note that we need to add code to properly handle or skip over the new
*types.Alias type which go/types produces for Go type aliases.
Also note that we actually turn this mode off entirely for now,
due to the bug reported at https://go.dev/issue/70394.

We don't yet remove our own alias tracking code yet due to the above.
We hope to be able to remove it very soon.
2024-11-17 16:06:57 +01:00

30 lines
895 B
Plaintext

! exec garble build ./...
cmpenv stderr stderr.golden
-- stderr.golden --
# test/main/broken
broken${/}broken.go:5:16: cannot use 123 (untyped int constant) as string value in variable declaration
imports_missing${/}imports.go:5:8: package test/main/missing is not in std (${GOROOT}${/}src${/}test${/}main${/}missing)
-- go.mod --
module test/main
go 1.23
-- broken/broken.go --
package broken
// A broken package will list in JSON form like:
// {..., "Incomplete": true, "Error": {...}, ...}
var x string = 123
-- imports_broken/imports.go --
package imports_broken
// Importing a broken package will list in JSON form like:
// {..., "Incomplete": false, ...}
import _ "test/main/broken"
-- imports_missing/imports.go --
package imports_missing
// Importing a missing package will list in JSON form like:
// {..., "Incomplete": true, "DepsErrors": [...], ...}
import _ "test/main/missing"