memregistry MEMREGISTRY
env CUE_REGISTRY=$MEMREGISTRY+insecure

! exec cue mod publish 1.2.3
cmp stderr want-stderr-1

! exec cue mod publish v1.2
cmp stderr want-stderr-2

! exec cue mod publish v1.2.3+build
cmp stderr want-stderr-3

-- want-stderr-1 --
invalid publish version "1.2.3"; must be valid semantic version (see http://semver.org)
-- want-stderr-2 --
publish version "v1.2" is not in canonical form
-- want-stderr-3 --
publish version "v1.2.3+build" is not in canonical form
-- cue.mod/module.cue --
module: "test.example"
language: version: "v0.9.2"
-- main.cue --
package main

