From 9dfa81a7376875fb78cc9e0cde8026dc5bc9cb69 Mon Sep 17 00:00:00 2001 From: Joel Longtine Date: Tue, 8 Mar 2022 13:57:40 -0700 Subject: [PATCH] Remove test that refers to old code paths Signed-off-by: Joel Longtine --- .../do/disconnected_outputs_weirdness.cue | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 tests/plan/do/disconnected_outputs_weirdness.cue diff --git a/tests/plan/do/disconnected_outputs_weirdness.cue b/tests/plan/do/disconnected_outputs_weirdness.cue deleted file mode 100644 index b9561c1d..00000000 --- a/tests/plan/do/disconnected_outputs_weirdness.cue +++ /dev/null @@ -1,56 +0,0 @@ -package main - -import ( - "dagger.io/dagger" - - "universe.dagger.io/alpine" - "universe.dagger.io/bash" -) - -// NOTE: This is NOT working. Just an interesting/weird case. - -dagger.#Plan & { - // This is acting weird... - // I don't understand why `cue/flow` thinks that outputs.files.test has a dependency - // on actions.fromAndrea.a.export._files."/output.txt"._read - // It _does_ fail correctly, FWIW, when it reaches this code. - // TASK: outputs.files.test - // DEPENDENCIES: - // actions.fromAndrea.a.export._files."/output.txt"._read - // actions.image._dag."1"._exec - // actions.image._dag."0"._op - client: filesystem: "./test_do": write: contents: actions.test1.one.export.files["/output.txt"] - - actions: { - image: alpine.#Build & { - packages: bash: {} - } - - abcAction: { - a: bash.#Run & { - input: image.output - script: contents: "echo -n 'from andrea with love' > /output.txt" - export: files: "/output.txt": string - } - b: { - x: bash.#Run & { - input: image.output - script: contents: "echo -n false > /output.txt" - export: files: "/output.txt": string - } - if x.export.files["/output.txt"] == "false" { - y: bash.#Run & { - input: a.output - script: contents: "echo -n hello from y" - export: files: "/output.txt": "from andrea with love" - } - } - } - } - - notMe: bash.#Run & { - input: image.output - script: contents: "false" - } - } -}