cue native: environments can reference a module instead of embedding
one. Fixes #631 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
committed by
Solomon Hykes
parent
8de58eb3d0
commit
f39a88e644
19
tests/cli/packages/a/main.cue
Normal file
19
tests/cli/packages/a/main.cue
Normal file
@@ -0,0 +1,19 @@
|
||||
package a
|
||||
|
||||
import "dagger.io/dagger/op"
|
||||
|
||||
exp: {
|
||||
string
|
||||
#up: [
|
||||
op.#FetchContainer & {ref: "busybox"},
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
printf a > /export
|
||||
"""]
|
||||
},
|
||||
op.#Export & {
|
||||
source: "/export"
|
||||
format: "string"
|
||||
},
|
||||
]
|
||||
}
|
19
tests/cli/packages/b/main.cue
Normal file
19
tests/cli/packages/b/main.cue
Normal file
@@ -0,0 +1,19 @@
|
||||
package b
|
||||
|
||||
import "dagger.io/dagger/op"
|
||||
|
||||
exp: {
|
||||
string
|
||||
#up: [
|
||||
op.#FetchContainer & {ref: "busybox"},
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
printf b > /export
|
||||
"""]
|
||||
},
|
||||
op.#Export & {
|
||||
source: "/export"
|
||||
format: "string"
|
||||
},
|
||||
]
|
||||
}
|
1
tests/cli/packages/cue.mod/module.cue
Normal file
1
tests/cli/packages/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: "dagger.io/test"
|
Reference in New Issue
Block a user