Skip to content

Commit d8da315

Browse files
committed
chore(deps): update golangci-lint GitHub Action to hopefully fix error
This change will hopefully resolve the 'Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: errors parsing go.mod:\n/home/runner/work/kconnect/kconnect/go.mod:3: invalid go version '1.22.0': must match format 1.23\n/home/runner/work/kconnect/kconnect/go.mod:5: unknown directive: toolchain' error message that we are seeing within the golangci-lint GitHub Action after adding the go toolchain directive within go.mod Signed-off-by: Casale, Robert <[email protected]>
1 parent 6cf16f2 commit d8da315

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/golangci-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
steps:
1818
- uses: actions/setup-go@v4
1919
with:
20-
go-version: '1.17'
20+
go-version: '1.22'
2121
cache: false
2222
- uses: actions/checkout@v3
2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@v3
2525
with:
2626
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
27-
version: v1.52
27+
version: v1.57
2828

2929
# Optional: working directory, useful for monorepos
3030
# working-directory: somedir

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ vet:
107107
go vet ./...
108108

109109
.PHONY: ci
110-
ci: fmt vet tidy test build # Target for CI
110+
ci: tidy fmt vet test build # Target for CI
111111

112112

113113
##@ Utility

0 commit comments

Comments
 (0)