Skip to content

Commit 2a7814d

Browse files
committed
enable linting and bingo management of the lint tool
Signed-off-by: Jordan Keister <[email protected]>
1 parent a0a503e commit 2a7814d

File tree

6 files changed

+1000
-2
lines changed

6 files changed

+1000
-2
lines changed

.bingo/Variables.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ $(GINKGO): $(BINGO_DIR)/ginkgo.mod
2929
@echo "(re)installing $(GOBIN)/ginkgo-v2.20.2"
3030
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=ginkgo.mod -o=$(GOBIN)/ginkgo-v2.20.2 "github.com/onsi/ginkgo/v2/ginkgo"
3131

32+
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.61.0
33+
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
34+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
35+
@echo "(re)installing $(GOBIN)/golangci-lint-v1.61.0"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.61.0 "github.com/golangci/golangci-lint/cmd/golangci-lint"
37+
3238
GORELEASER := $(GOBIN)/goreleaser-v1.26.2
3339
$(GORELEASER): $(BINGO_DIR)/goreleaser.mod
3440
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

.bingo/golangci-lint.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.22.5
4+
5+
require github.com/golangci/golangci-lint v1.61.0 // cmd/golangci-lint

0 commit comments

Comments
 (0)