...
1# This test checks we can have have an import with an implied major version
2# when there's no explicit default in the module file.
3-- tidy-check-error --
4module is not tidy: cannot find module providing package .*
5-- want --
6module: "main.org@v0"
7language: {
8 version: "v0.99.99"
9}
10deps: {
11 "example.com@v1": {
12 v: "v1.0.0"
13 default: true
14 }
15}
16-- cue.mod/module.cue --
17module: "main.org@v0"
18language: {
19 version: "v0.99.99"
20}
21-- main.cue --
22package main
23
24import "example.com/foo"
25
26-- _registry/example.com_v0.0.1/cue.mod/module.cue --
27module: "example.com@v0"
28
29-- _registry/example.com_v0.0.1/foo/top.cue --
30package foo
31
32-- _registry/example.com_v0.0.3-alpha/cue.mod/module.cue --
33module: "example.com@v0"
34
35-- _registry/example.com_v0.0.3-alpha/foo/top.cue --
36package foo
37
38-- _registry/example.com_v1.0.0/cue.mod/module.cue --
39module: "example.com@v1"
40
41-- _registry/example.com_v1.0.0/foo/top.cue --
42package foo
43
44-- _registry/example.com_v1.2.1-alpha/cue.mod/module.cue --
45module: "example.com@v1"
46
47-- _registry/example.com_v1.2.1-alpha/foo/top.cue --
48package foo
View as plain text