# Issue 1607

exec cue get go --local ./x
cmp x/x_go_gen.cue x_go_gen.cue.golden

-- go.mod --
module mod.test

go 1.21
-- x/x.go --
package x

import "mod.test/y"

type X = y.Y

-- y/y.go --
package y

import "mod.test/z"

type Y = z.Z

-- z/z.go --
package z

type Z int

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

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

package x

import "mod.test/z"

#X: z.#Z
