# Check that cue mod tidy --check fails when some dependencies aren't present.

! exec cue mod tidy --check
cmp stderr want-stderr

-- want-stderr --
module is not tidy, use 'cue mod tidy': missing dependency providing package example.com@v0:main
-- cue.mod/module.cue --
module: "main.org@v0"
language: version: "v0.8.0"

-- main.cue --
package main
import "example.com@v0:main"

main

-- _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

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

