# This test checks that prereleases can be used if there are
# no stable releases available.

-- tidy-check-error --
module is not tidy: missing dependency providing package example.com@v0:main
-- want --
module: "main.org@v0"
language: {
	version: "v0.8.0"
}
deps: {
	"example.com@v0": {
		v: "v0.0.3-alpha"
	}
}
-- cue.mod/module.cue --
module: "main.org@v0"
language: version: "v0.8.0"

-- main.cue --
package main

import "example.com@v0:main"

-- _registry/example.com_v0.0.1-foo/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.8.0"

-- _registry/example.com_v0.0.1-foo/top.cue --
package main
language: version: "v0.8.0"

-- _registry/example.com_v0.0.3-alpha/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.8.0"

-- _registry/example.com_v0.0.3-alpha/top.cue --
package main
