# Check that cue mod tidy fails when there is no version
# present in the module.cue file.

! exec cue mod tidy
cmp stderr want-stderr

-- want-stderr --
no language version declared in module.cue; run 'cue mod fix'
-- cue.mod/module.cue --
module: "main.org@v0"

-- main.cue --
package main
x: 1

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