# Test that `cue get go` still works in the presence of embedding errors,
# as those do not matter for loading Go types.

exec cue get go --local
cmp blah_go_gen.cue blah.cue.golden

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

go 1.14
-- blah.go --
package main

import _ "embed"

//go:embed missing.txt
var missing string

type T struct {
	Age int
}

-- blah.cue.golden --
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go mod.test/blah

package main

#T: Age: int
