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: #"""