File: localpackageambiguous.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.12.0.-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,072 kB
  • sloc: sh: 57; makefile: 17
file content (54 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# test0 shows that we can have a local import
# and it's OK even when there's a matching module
# in the registry.

# test1 shows that if there is a matching module already
# in the requirements that we get an "ambiguous import"
# error.

-- test0/initial-requirements --
main.test@v0
-- test0/root-packages --
main.test@v0:main
-- test0/default-major-versions --
-- test0/want --
main.test@v0:main
	flags: inAll,isRoot,fromRoot,importsLoaded
	mod: main.test@v0
	location: .
	imports:
		example.com/blah
example.com/blah
	flags: inAll,isRoot,fromRoot,importsLoaded
	mod: local
	location: cue.mod/gen/example.com/blah
-- test1/initial-requirements --
main.test@v0
example.com@v0.0.1
-- test1/root-packages --
main.test@v0:main
-- test1/default-major-versions --
-- test1/want --
main.test@v0:main
	flags: inAll,isRoot,fromRoot,importsLoaded
	mod: main.test@v0
	location: .
	imports:
		example.com/blah
example.com/blah
	flags: inAll,isRoot,fromRoot
	error: ambiguous import: found package example.com/blah in multiple modules:
	example.com@v0 v0.0.1 (_registry/example.com_v0.0.1/blah)
	local (cue.mod/gen/example.com/blah)
	missing: false
-- cue.mod/gen/example.com/blah/x.cue --
package blah
-- main.cue --
package main
import "example.com/blah"

-- _registry/example.com_v0.0.1/cue.mod/module.cue --
module: "example.com@v0"
language: version: "v0.8.0"
-- _registry/example.com_v0.0.1/blah/blah.cue --
package blah