You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/script/list_error.txtar

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.22
-- 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"