# Check that we can use the cue mod publish command to publish to a registry
# with a repository prefix.

memregistry MEMREGISTRY
env CUE_REGISTRY=$MEMREGISTRY/some/repo+insecure

cd example/foo
exec cue mod publish v0.0.1
stdout '^published example.com@v0.0.1 to [^ ]+/some/repo/example.com:v0.0.1$'

-- example/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.9.0-alpha.0"

source: kind: "self"

-- example/foo/foo.cue --
package foo

"example.com/foo@v0": "v0.0.1"

