From ba0f565dbffe039cc05f83fbe8a3544ecc6788d4 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 23 Feb 2022 16:21:51 -0800 Subject: [PATCH] ci: fixed output + implemented cue linter Signed-off-by: Sam Alba --- ci/main.cue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ci/main.cue b/ci/main.cue index 27704095..7f480c1a 100644 --- a/ci/main.cue +++ b/ci/main.cue @@ -29,13 +29,10 @@ dagger.#Plan & { } } - // FIXME? - // FTL failed to load plan: outputs.directories."go binaries".contents: undefined field: contents: - // - // outputs: directories: "go binaries": { - // contents: actions.build.export.directories["/build"].contents - // dest: "./build" - // } + outputs: directories: "go binaries": { + contents: actions.build.export.directories["/build"] + dest: "./build" + } actions: { _goModCache: "go mod cache": { @@ -91,11 +88,12 @@ dagger.#Plan & { } } - cueFmt: bash.#Run & { + cueLint: bash.#Run & { input: _baseImages.cue script: contents: #""" find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s + test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)" """# workdir: mounts["dagger source code"].dest mounts: {