...

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

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

     1# Test that using a bad import path does not result in a panic.
     2
     3-- tidy-check-error --
     4module is not tidy: cannot find module providing package x.com/Foo--bar@v0
     5-- want --
     6error: failed to resolve "x.com/Foo--bar@v0": cannot obtain versions for module "x.com/Foo--bar@v0": invalid OCI request: invalid repository name
     7-- cue.mod/module.cue --
     8language: version: "v0.99.99"
     9module: "main.org@v0"
    10
    11-- main.cue --
    12package main
    13import "x.com/Foo--bar@v0"
    14
    15-- _registry/example.com_v0.0.1/cue.mod/module.cue --
    16module: "example.com@v0"
    17
    18-- _registry/example.com_v0.0.1/x.cue --
    19package x

View as plain text