fixes issue where dagger hands when input directory does not exist

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2021-12-17 13:37:20 -07:00
parent 3861ab3464
commit aa268561bc
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"alpha.dagger.io/europa/dagger/engine"
)
engine.#Plan & {
// should fail because path does not exist locally
inputs: directories: test: path: "./fasdfsdfs"
actions: verify: engine.#ReadFile & {
input: inputs.directories.test.contents
path: "test.txt"
} & {
contents: "local directory"
}
}