# This test tests that submodules work OK.

exec cue eval .
cmp stdout expect-stdout
-- expect-stdout --
a: {
    e: true
    f: true
}
-- cue.mod/module.cue --
module: "main.org"
language: version: "v0.8.0"

deps: {
	"example.com@v0": {
		default: true
		v: "v0.0.1"
	}
	"example.com/foo@v0": {
		default: true
		v: "v0.0.1"
	}
}
-- main.cue --
package main
import (
	"example.com@v0:example"
	"example.com/foo@v0"
)
a: {
	e: example.e
	f: foo.f
}
-- _registry/example.com_v0.0.1/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.8.0"

-- _registry/example.com_v0.0.1/top.cue --
package example

e: true
-- _registry/example.com_foo_v0.0.1/cue.mod/module.cue --
module: "example.com/foo@v0"
language: version: "v0.8.0"
-- _registry/example.com_foo_v0.0.1/foo.cue --
package foo
f: true
