From 555966d040a27eef2f19a5b82b2609583b36bb97 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 28 Feb 2022 17:09:33 -0800 Subject: [PATCH] ci: explicit dependency between goBuild and goLint Signed-off-by: Sam Alba --- ci/main.cue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/main.cue b/ci/main.cue index e5f17b61..80c5b7f2 100644 --- a/ci/main.cue +++ b/ci/main.cue @@ -49,7 +49,6 @@ dagger.#Plan & { dest: "/usr/src/dagger" } - // FIXME: build only if the linter passed build: bash.#Run & { input: _baseImages.goBuilder @@ -57,6 +56,8 @@ dagger.#Plan & { GOMODCACHE: mounts["go mod cache"].dest GOOS: strings.ToLower(inputs.params.os) GOARCH: strings.ToLower(inputs.params.arch) + // Makes sure the linter completes before starting the build + "__depends": "\(goLint.exit)" } script: contents: #"""