From d95c9508a3ffad440b1f688a634e81d219c5652c Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Wed, 17 Jul 2024 09:20:45 +0200 Subject: [PATCH] chore(lint): print error locations (#8246) # Which Problems Are Solved If golangci-lint fails, it is hard to find out how to fix it. # How the Problems Are Solved The official GitHub action for golangci-lint is upgraded from v4 to [v6](https://github.com/golangci/golangci-lint-action/releases/tag/v6.0.1). ## Before Upgrade ![image](https://github.com/zitadel/zitadel/assets/12727842/d25bcb0d-5e86-4f8d-92e9-f24e53319062) ## After Upgrade ![image](https://github.com/zitadel/zitadel/assets/12727842/91c6c9ff-832b-49f5-ba92-ff835d8179c0) # Additional Changes Removes the config properties `skip-pkg-cache` and `skip-build-cache` as support was removed with [v5](https://github.com/golangci/golangci-lint-action/releases/tag/v5.0.0). --------- Co-authored-by: Silvan --- .github/workflows/lint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f9c926236..0aa3b8173 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -95,10 +95,8 @@ jobs: key: ${{ inputs.core_cache_key }} fail-on-cache-miss: true - - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: version: ${{ inputs.go_lint_version }} github-token: ${{ github.token }} only-new-issues: true - skip-pkg-cache: true - skip-build-cache: true