mirror of
https://github.com/opentofu/opentofu.git
synced 2026-02-18 18:17:54 -05:00
Update makefile, github workflow to use golangci-lint v2
Signed-off-by: Tyler Auerbeck <tylerauerbeck@users.noreply.github.com>
This commit is contained in:
parent
ca72604301
commit
59fcdcd2b8
2 changed files with 2 additions and 2 deletions
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
|
|
@ -212,7 +212,7 @@ jobs:
|
|||
- name: "Code linting"
|
||||
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
|
||||
with:
|
||||
version: v1.64.5
|
||||
version: v2.1.6
|
||||
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
||||
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8
|
||||
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -47,7 +47,7 @@ protobuf:
|
|||
# Golangci-lint
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint:
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
|
||||
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
|
||||
|
||||
# Run license check
|
||||
.PHONY: license-check
|
||||
|
|
|
|||
Loading…
Reference in a new issue