cuelang.org/go@v0.10.1/internal/mod/modload/testdata/tidy/implied-major-version-ambiguity.txtar (about) 1 # This test checks that when there are two major versions of a module 2 # with no default, we don't try to resolve to one of them, but instead 3 # report an error about the ambiguity. 4 5 # TODO the error currently does not mention the actual ambiguity that caused 6 # the issue - that should be fixed. 7 -- want -- 8 error: failed to resolve "example.com/foo": cannot find module providing package example.com/foo 9 -- tidy-check-error -- 10 module is not tidy: missing dependency providing package example.com/bar@v1 11 -- cue.mod/module.cue -- 12 module: "main.org@v0" 13 language: version: "v0.8.0" 14 -- main.cue -- 15 package main 16 17 import ( 18 "example.com/foo@v0" 19 "example.com/bar@v1" 20 ) 21 -- other.cue -- 22 package main 23 import "example.com/foo" 24 25 -- _registry/example.com_v0.0.1/cue.mod/module.cue -- 26 module: "example.com@v0" 27 language: version: "v0.8.0" 28 29 -- _registry/example.com_v0.0.1/foo/foo.cue -- 30 package foo 31 32 -- _registry/example.com_v1.0.0/cue.mod/module.cue -- 33 module: "example.com@v1" 34 language: version: "v0.8.0" 35 36 -- _registry/example.com_v1.0.0/bar/bar.cue -- 37 package bar