From ffc392acd4821cc8d5eee8892c2f7d24506b3fc7 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 24 Jun 2025 12:28:38 +0200 Subject: [PATCH] test vet for macos-precheck PR --- .github/workflows/make-check.yml | 5 ++++- Makefile | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/make-check.yml b/.github/workflows/make-check.yml index edc5998fbc..960af9c865 100644 --- a/.github/workflows/make-check.yml +++ b/.github/workflows/make-check.yml @@ -25,7 +25,10 @@ jobs: with: go-version: ${{ matrix.go }} - name: Build - run: make check + run: make vet - if: runner.os == 'Linux' name: Go version check run: make goversioncheck + - if: runner.os == 'macOS' + name: pkg-config check + run: command -v pkg-config || echo "pkg-config is missing" diff --git a/Makefile b/Makefile index 7abfa3a774..2148cd6da8 100644 --- a/Makefile +++ b/Makefile @@ -256,6 +256,10 @@ e2e-story-microshift: install fmt: $(TOOLS_BINDIR)/goimports @$(TOOLS_BINDIR)/goimports -l -w $(SOURCE_DIRS) +.PHONY: vet +vet: gen_release_info + go vet -tags "containers_image_openpgp,build" ./... + # Run golangci-lint against code .PHONY: lint cross-lint lint: $(TOOLS_BINDIR)/golangci-lint gen_release_info