Skip to content

Commit

Permalink
[chore] use the same version of golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 25, 2024
1 parent 1eb3850 commit 222c01a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.59.1 # we have a list of linters in our .golangci.yml config file
# Note: there are 2 different version of golangci-lint used inside the project.
# https://github.com/gopasspw/gopass/blob/master/.github/workflows/build.yml#L65
# https://github.com/gopasspw/gopass/blob/master/.github/workflows/golangci-lint.yml#L46
# https://github.com/gopasspw/gopass/blob/master/Makefile#L136
version: v1.61.0 # we have a list of linters in our .golangci.yml config file
only-new-issues: true
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ crosscompile:
codequality:
@echo ">> CODE QUALITY"

# Note: there are 2 different version of golangci-lint used inside the project.
# https://github.com/gopasspw/gopass/blob/master/.github/workflows/build.yml#L65
# https://github.com/gopasspw/gopass/blob/master/.github/workflows/golangci-lint.yml#L46
# https://github.com/gopasspw/gopass/blob/master/Makefile#L136
@echo -n " GOLANGCI-LINT "
@which golangci-lint > /dev/null; if [ $$? -ne 0 ]; then \
$(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \
Expand Down

0 comments on commit 222c01a

Please sign in to comment.