mirror of
https://github.com/burrowers/garble
synced 2026-06-06 15:24:28 +00:00
30357af923
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.
30 lines
895 B
Plaintext
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"
|