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