From 492a7ff9c3ecdc558759f09d836830e988a189d2 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Wed, 23 Feb 2022 19:14:04 -0800 Subject: [PATCH] ci: fix cue linter Signed-off-by: Sam Alba --- ci/main.cue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/main.cue b/ci/main.cue index 7f480c1a..e5f17b61 100644 --- a/ci/main.cue +++ b/ci/main.cue @@ -92,8 +92,10 @@ dagger.#Plan & { input: _baseImages.cue script: contents: #""" + # Format the cue code 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)" + # Check that all formatted files where committed + test -z $(git status -s . | grep -e '^ M' | grep .cue | cut -d ' ' -f3) """# workdir: mounts["dagger source code"].dest mounts: {