cuelang.org/go@v0.10.1/internal/mod/modload/testdata/tidy/cuemod-local.txtar (about) 1 # This test checks that a mix of dependencies from a registry, 2 # local modules from cue.mod/*/, and imports from the current module 3 # all works and passes the tidy check. 4 5 -- tidy-check-error -- 6 module is not tidy: missing dependency providing package example.com@v0:main 7 -- want -- 8 module: "main.org@v0" 9 language: { 10 version: "v0.8.0" 11 } 12 deps: { 13 "example.com@v0": { 14 v: "v0.0.1" 15 } 16 } 17 -- cue.mod/module.cue -- 18 module: "main.org@v0" 19 language: version: "v0.8.0" 20 21 -- cue.mod/pkg/cuemodpkg.test/top.cue -- 22 package cuemodpkg 23 24 "cuemodpkg.test": "local" 25 26 -- cue.mod/gen/cuemodgen.test/top.cue -- 27 package cuemodgen 28 29 "cuemodgen.test": "local" 30 31 -- cue.mod/usr/cuemodusr.test/top.cue -- 32 package cuemodusr 33 34 "cuemodusr.test": "local" 35 36 -- main.cue -- 37 package main 38 import ( 39 "example.com@v0:main" 40 "main.org/subpkg@v0" 41 "cuemodpkg.test:cuemodpkg" 42 "cuemodgen.test:cuemodgen" 43 "cuemodusr.test:cuemodusr" 44 ) 45 46 main 47 subpkg 48 cuemodpkg 49 cuemodgen 50 cuemodusr 51 52 -- subpkg/top.cue -- 53 package subpkg 54 55 "main.org@v0/sub": "current" 56 57 -- _registry/example.com_v0.0.1/cue.mod/module.cue -- 58 module: "example.com@v0" 59 language: version: "v0.8.0" 60 61 -- _registry/example.com_v0.0.1/top.cue -- 62 package main 63 64 "example.com@v0": "v0.0.1"