input to inputs

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-12-17 11:24:50 -07:00
parent 3c0d9c5acc
commit 03a740ff1e
6 changed files with 30 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
package main
import (
"alpha.dagger.io/europa/dagger/engine"
)
engine.#Plan & {
inputs: directories: test: path: "./plan/inputs/directories"
actions: verify: engine.#ReadFile & {
input: inputs.directories.test.contents
path: "test.txt"
} & {
contents: "local dfsadf" // should fail with conflicting values
}
}

View File

@@ -1,16 +1,15 @@
package main
import (
"alpha.dagger.io/europa/dagger"
"alpha.dagger.io/europa/dagger/engine"
)
dagger.#Plan & {
input: directories: test: path: "./plan/inputs/directories"
engine.#Plan & {
inputs: directories: test: path: "./plan/inputs/directories"
actions: verify: engine.#ReadFile & {
input: input.directories.test.contents
input: inputs.directories.test.contents
path: "test.txt"
} & {
contents: "local directory\n"
contents: "local directory"
}
}