cuelang.org/go@v0.10.1/internal/mod/modload/testdata/tidy/implied-major-version-without-explicit-default.txtar (about)

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