From 9927b8d94d88abf48109574a4087874ca0f401fe Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Thu, 23 Dec 2021 16:21:32 +0100 Subject: [PATCH] Refactor platform type to `string` to support any kind of platform Signed-off-by: Vasek - Tom C --- stdlib/europa/dagger/engine/plan.cue | 6 +----- tests/plan/outputs/outputs.cue | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/stdlib/europa/dagger/engine/plan.cue b/stdlib/europa/dagger/engine/plan.cue index 187d71cf..2d444b33 100644 --- a/stdlib/europa/dagger/engine/plan.cue +++ b/stdlib/europa/dagger/engine/plan.cue @@ -28,7 +28,7 @@ package engine proxy: [endpoint=string]: _#proxyEndpoint // Configure platform execution - platform?: #Platform + platform?: string // Execute actions in containers actions: { @@ -142,7 +142,3 @@ _#proxyEndpoint: { // A network service address #Address: string & =~"^(tcp://|unix://|udp://).*" - -// Platform supported by buildkit daemon -#Platform: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" | - "linux/s390x" | "linux/ppc64le" | "darwin/amd64" | "windows/amd64" 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" } }