# Check that imports from files specified on the command line
# are still considered even when they are not part of the main module.

exec cue export _foo/x.cue
cmp stdout stdout.golden

-- cue.mod/module.cue --
module: "mod.com@v0"
language: {
    version: "v0.9.0"
}
-- cue.mod/pkg/example.com/banana/banana.cue --
package banana

X: 42
-- _foo/x.cue --
package p

import "example.com/banana"

x: banana.X
-- stdout.golden --
{
    "x": 42
}
