-- out/modfetch/result --
{
	"bar.com@v0":           "v0.5.0"
	"baz.org@v0":           "v0.10.1"
	"foo.com/bar/hello@v0": "v0.2.3"
	main:                   "main"
	"example.com@v0":       "v0.0.1"
}
-- cue.mod/module.cue --
module: "main.org"
language: version: "v0.9.0-main"
deps: {
	"example.com@v0": v: "v0.0.1"
	"foo.com/bar/hello@v0": v: "v0.2.3"
	"baz.org@v0": v: "v0.10.1"
}

-- main.cue --
package main
import "example.com@v0:main"

main

-- _registry/example.com_v0.0.1/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.9.0-example.v0.0.1"
deps: {
	"foo.com/bar/hello@v0": v: "v0.2.3"
	"bar.com@v0": v: "v0.5.0"
}

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

// Note: import without a major version takes
// the major version from the module.cue file.
import a "foo.com/bar/hello"
a
main: "main"
"example.com@v0": "v0.0.1"

-- _registry/foo.com_bar_hello_v0.2.3/cue.mod/module.cue --
module: "foo.com/bar/hello@v0"
language: version: "v0.9.0-foo.com.bar.hello.v0.2.3"
deps: {
	"bar.com@v0": v: "v0.0.2"
	"baz.org@v0": v: "v0.10.1"
}

-- _registry/foo.com_bar_hello_v0.2.3/x.cue --
package hello
import (
	a "bar.com/bar@v0"
	b "baz.org@v0:baz"
)
"foo.com/bar/hello@v0": "v0.2.3"
a
b


-- _registry/bar.com_v0.0.2/cue.mod/module.cue --
module: "bar.com@v0"
language: version: "v0.9.0-bar.com.v0.0.2"
deps: "baz.org@v0": v: "v0.0.2"

-- _registry/bar.com_v0.0.2/bar/x.cue --
package bar
import a "baz.org@v0:baz"
"bar.com@v0": "v0.0.2"
a


-- _registry/bar.com_v0.5.0/cue.mod/module.cue --
module: "bar.com@v0"
language: version: "v0.9.0-bar.com.v0.5.0"
deps: "baz.org@v0": v: "v0.5.0"

-- _registry/bar.com_v0.5.0/bar/x.cue --
package bar
import a "baz.org@v0:baz"
"bar.com@v0": "v0.5.0"
a


-- _registry/baz.org_v0.0.2/cue.mod/module.cue --
module: "baz.org@v0"
language: version: "v0.9.0-baz.org.v0.0.2"

-- _registry/baz.org_v0.0.2/baz.cue --
package baz
"baz.org@v0": "v0.0.2"


-- _registry/baz.org_v0.1.2/cue.mod/module.cue --
module: "baz.org@v0"
language: version: "v0.9.0-baz.org.v0.1.2"

-- _registry/baz.org_v0.1.2/baz.cue --
package baz
"baz.org@v0": "v0.1.2"


-- _registry/baz.org_v0.5.0/cue.mod/module.cue --
module: "baz.org@v0"
language: version: "v0.9.0-baz.org.v0.5.0"

-- _registry/baz.org_v0.5.0/baz.cue --
package baz
"baz.org@v0": "v0.5.0"


-- _registry/baz.org_v0.10.1/cue.mod/module.cue --
module: "baz.org@v0"
language: version: "v0.9.0-baz.org.v0.10.1"

-- _registry/baz.org_v0.10.1/baz.cue --
package baz
"baz.org@v0": "v0.10.1"
-- out/modfetch/instance-info --
main.org@v0:main module=main.org@v0 version=v0.9.0-main
	example.com@v0:main module=example.com@v0 version=v0.9.0-example.v0.0.1
		foo.com/bar/hello@v0 module=foo.com/bar/hello@v0 version=v0.9.0-foo.com.bar.hello.v0.2.3
			bar.com/bar@v0 module=bar.com@v0 version=v0.9.0-bar.com.v0.5.0
				baz.org@v0:baz module=baz.org@v0 version=v0.9.0-baz.org.v0.10.1
			baz.org@v0:baz module=baz.org@v0 version=v0.9.0-baz.org.v0.10.1
