...

Text file src/cuelang.org/go/internal/mod/modload/testdata/tidy/tidy-check-fails-with-extra-deps.txtar

Documentation: cuelang.org/go/internal/mod/modload/testdata/tidy

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

View as plain text