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

     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 --
     4  module: "main.org@v0"
     5  language: {
     6  	version: "v0.8.0"
     7  }
     8  deps: {
     9  	"example.com@v0": {
    10  		v:       "v0.0.1"
    11  		default: true
    12  	}
    13  }
    14  -- cue.mod/module.cue --
    15  module: "main.org@v0"
    16  language: {
    17  	version: "v0.8.0"
    18  }
    19  deps: {
    20  	"example.com@v0": {
    21  		v:       "v0.0.1"
    22  		default: true
    23  	}
    24  }
    25  
    26  -- main.cue --
    27  package main
    28  
    29  import "example.com:main"
    30  
    31  -- _registry/example.com_v0.0.1/cue.mod/module.cue --
    32  module: "example.com@v0"
    33  language: version: "v0.8.0"
    34  
    35  -- _registry/example.com_v0.0.1/top.cue --
    36  package main
    37  
    38  -- _registry/example.com_v0.0.3-alpha/cue.mod/module.cue --
    39  module: "example.com@v0"
    40  language: version: "v0.8.0"
    41  
    42  -- _registry/example.com_v0.0.3-alpha/top.cue --
    43  package main