! exec cue eval .
# TODO this error message could use improvement:
# - the "error response: 404 Not Found: " part is redundant
# - the module path is also repeated redundantly.
cmp stderr expect-stderr

-- expect-stderr --
test.org@v0: import failed: cannot find package "example.com/e": cannot fetch example.com/e@v0.0.2: module example.com/e@v0.0.2: module not found:
    ./main.cue:2:8
-- main.cue --
package main
import "example.com/e"

e.foo

-- cue.mod/module.cue --
module: "test.org"
language: version: "v0.8.0"
deps: "example.com/e": v: "v0.0.2"
-- _registry/example.com_e_v0.0.1/cue.mod/module.cue --
module: "example.com/e@v0"
language: version: "v0.8.0"

-- _registry/example.com_e_v0.0.1/main.cue --
package e
