Skip to content

Commit 51e2ae7

Browse files
committed
Use Go 1.19 in golangci-lint action
Signed-off-by: Vince Prignano <[email protected]>
1 parent 53057ba commit 51e2ae7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
- ""
1515
- tools/setup-envtest
1616
steps:
17+
- uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.19'
20+
cache: false
1721
- uses: actions/checkout@v3
1822
- name: golangci-lint
1923
uses: golangci/golangci-lint-action@v3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ $(CONTROLLER_GEN): $(TOOLS_DIR)/go.mod # Build controller-gen from tools folder.
7575
$(GOLANGCI_LINT): .github/workflows/golangci-lint.yml # Download golanci-lint using hack script into tools folder.
7676
hack/ensure-golangci-lint.sh \
7777
-b $(TOOLS_BIN_DIR) \
78-
$(shell cat .github/workflows/golangci-lint.yml | grep version | sed 's/.*version: //')
78+
$(shell cat .github/workflows/golangci-lint.yml | grep "version: v" | sed 's/.*version: //')
7979

8080
## --------------------------------------
8181
## Linting

0 commit comments

Comments
 (0)