cuelang.org/go@v0.10.1/internal/mod/modload/testdata/tidy/tidy-check-fails-with-extra-deps.txtar (about)

     1  # Test that the tidiness check fails when there are
     2  # unnecessary dependencies present in module.cue
     3  
     4  -- tidy-check-error --
     5  module is not tidy
     6  -- want --
     7  module: "main.org@v0"
     8  language: {
     9  	version: "v0.8.100"
    10  }
    11  deps: {
    12  	"example.com@v0": {
    13  		v: "v0.0.1"
    14  	}
    15  }
    16  -- cue.mod/module.cue --
    17  module: "main.org@v0"
    18  language: version: "v0.8.100"
    19  // With a comment.
    20  deps: {
    21  	"example.com@v0": v: "v0.0.1"
    22  	"unused.com@v0": v: "v0.1.2"
    23  }
    24  
    25  -- main.cue --
    26  package main
    27  import "example.com@v0:main"
    28  
    29  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  "example.com@v0": "v0.0.1"