ci: explicit dependency between goBuild and goLint
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
parent
492a7ff9c3
commit
555966d040
@ -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: #"""
|
||||
|
Reference in New Issue
Block a user