From 513638a40b9d05a241403a12251b64236763f28d Mon Sep 17 00:00:00 2001 From: Vasek - Tom C Date: Thu, 23 Dec 2021 15:54:38 +0100 Subject: [PATCH] Add default value to permissions to `#WriteFile` Signed-off-by: Vasek - Tom C --- stdlib/europa/dagger/engine/fs.cue | 2 +- tests/plan/outputs/outputs.cue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/europa/dagger/engine/fs.cue b/stdlib/europa/dagger/engine/fs.cue index 7494b246..ff4d1d7a 100644 --- a/stdlib/europa/dagger/engine/fs.cue +++ b/stdlib/europa/dagger/engine/fs.cue @@ -43,7 +43,7 @@ package engine // Contents to write contents: string // Permissions of the file - permissions: int + permissions: *0o600 | int // Output filesystem tree output: #FS } diff --git a/tests/plan/outputs/outputs.cue b/tests/plan/outputs/outputs.cue index 086b6239..30101e8f 100644 --- a/tests/plan/outputs/outputs.cue +++ b/tests/plan/outputs/outputs.cue @@ -7,10 +7,10 @@ engine.#Plan & { scratch: engine.#Scratch data: engine.#WriteFile & { - input: scratch.output - path: "/test" - mode: 0o600 - contents: "foobar" + input: scratch.output + path: "/test" + permissions: 0o600 + contents: "foobar" } }