# Test that we properly print errors when there are fatal errors
# in loading Go packages, such as a typechecking error.

! exec cue get go --local
! stdout .
cmpenv stderr stderr.golden

-- go.mod --
module mod.test/blah

go 1.14
-- blah.go --
package main

var someInt int = "not an int"

type T struct {
	Age int
}
-- stderr.golden --
${WORK}${/}blah.go:3:19: cannot use "not an int" (untyped string constant) as int value in variable declaration
