-- want --
x.cue "dep1" "dep2:a" "dep2:b" "dep3"
z.cue
y/y1.cue "dep3" "dep4"
y/y2.cue
y/z1.cue
y/z2.cue
-- want-imports --
dep1
dep2:a
dep2:b
dep3
dep4
-- cue.mod/module.cue --
module: "example.com"

-- x.cue --
package example

import (
	"dep1"
	"dep2:a"
	"dep2:b"
)
import "dep3"

x: true
-- y/y1.cue --
package y
import (
	"dep3"
	"dep4"
)

-- y/y2.cue --
package y

-- y/z1.cue --
package z

-- y/z2.cue --
package z

-- y/.omitted.cue --
package foo

-- y/_omitted.cue --
package foo

-- z.cue --
package example

-- _omitted1/foo.cue --
not even looked at

-- .omitted2/foo.cue --
not looked at either

-- z/cue.mod/module.cue --
module "other.com"

-- z/z.cue --
package z
