From 71c53a5c5ec8cc3b34df4ea26f4af2ad23b4a1bc Mon Sep 17 00:00:00 2001 From: christophe-duc Date: Wed, 7 Jan 2026 16:32:34 -0400 Subject: [PATCH] Add build tags to linter and update golangci-lint action to v6 --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1110f69..b6c820bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,15 +136,13 @@ jobs: restore-keys: | ${{runner.os}}-go- - name: Lint - uses: golangci/golangci-lint-action@v3.1.0 + uses: golangci/golangci-lint-action@v6 with: version: latest + args: --build-tags=containers_image_openpgp,exclude_graphdriver_btrfs - name: Format code run: | if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \; exit 1 fi - - name: errors - run: golangci-lint run - if: ${{ failure() }}