...

Text file src/cuelang.org/go/internal/mod/modload/testdata/tidy/packagenotfound.txtar

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

     1# Test what happens when we try to import a package that does not exist.
     2
     3-- tidy-check-error --
     4module is not tidy: cannot find module providing package example.com/nonexistent@v0
     5-- want --
     6error: failed to resolve "example.com/nonexistent@v0": cannot find module providing package example.com/nonexistent@v0
     7-- cue.mod/module.cue --
     8module: "main.org@v0"
     9language: {
    10	version: "v0.99.99"
    11}
    12
    13-- main.cue --
    14package main
    15import "example.com/nonexistent@v0"
    16
    17-- _registry/example.com_v0.0.1/cue.mod/module.cue --
    18module: "example.com@v0"
    19
    20-- _registry/example.com_v0.0.1/x.cue --
    21package x

View as plain text