ci: use cue version from go.mod

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-03-02 19:06:49 -08:00
parent 14f535655d
commit 408053f092
2 changed files with 10 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ cuefmt:
@(cue fmt -s ./examples/*)
.PHONY: lint
lint: cuefmt check-buildkit-version check-cue-version
lint: cuefmt check-buildkit-version
golangci-lint run
@test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)"
@@ -30,12 +30,6 @@ check-buildkit-version:
"$(shell grep ' = "v' ./pkg/buildkitd/buildkitd.go | sed -E 's/^.*version.*=.*\"(v.*)\"/\1/' )" \
|| { echo buildkit version mismatch go.mod != pkg/buildkitd/buildkitd.go ; exit 1; }
.PHONY: check-cue-version
check-cue-version:
@grep -q "$(shell grep cue ./go.mod | cut -d' ' -f2)" .github/workflows/ci.yml \
|| { echo cue version mismatch go.mod != .github/workflows/ci.yml ; exit 1; }
.PHONY: integration
integration: dagger-debug
# Self-diagnostics