Skip to content

Commit 462733f

Browse files
committed
Update dependencies and configuration files
- Bump Go version from 1.23.6 to 1.24.1 in updatecli.mod - Update updatecli dependency from v0.95.1 to v0.97.0 in updatecli.mod and variables.env - Add new checks and configurations in .golangci.yml, including enabling new linters and adjusting exclusions - Upgrade Grafana Alloy version in Makefile from v1.5.1 to v1.7.5 for formatting - Remove obsolete goimports script from tools/scripts - Update go.sum with new dependencies and versions Signed-off-by: Weifeng Wang <[email protected]>
1 parent bd95341 commit 462733f

11 files changed

+166
-469
lines changed

Diff for: .bingo/Variables.mk

+6-12
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,11 @@ $(GOFUMPT): $(BINGO_DIR)/gofumpt.mod
3535
@echo "(re)installing $(GOBIN)/gofumpt-v0.7.0"
3636
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=gofumpt.mod -o=$(GOBIN)/gofumpt-v0.7.0 "mvdan.cc/gofumpt"
3737

38-
GOIMPORTS := $(GOBIN)/goimports-v0.31.0
39-
$(GOIMPORTS): $(BINGO_DIR)/goimports.mod
40-
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
41-
@echo "(re)installing $(GOBIN)/goimports-v0.31.0"
42-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.31.0 "golang.org/x/tools/cmd/goimports"
43-
44-
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.64.7
38+
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v2.0.2
4539
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
4640
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
47-
@echo "(re)installing $(GOBIN)/golangci-lint-v1.64.7"
48-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.64.7 "github.com/golangci/golangci-lint/cmd/golangci-lint"
41+
@echo "(re)installing $(GOBIN)/golangci-lint-v2.0.2"
42+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v2.0.2 "github.com/golangci/golangci-lint/v2/cmd/golangci-lint"
4943

5044
GORELEASER := $(GOBIN)/goreleaser-v1.26.2
5145
$(GORELEASER): $(BINGO_DIR)/goreleaser.mod
@@ -89,9 +83,9 @@ $(MIXTOOL): $(BINGO_DIR)/mixtool.mod
8983
@echo "(re)installing $(GOBIN)/mixtool-v0.0.0-20250106141011-7472b3fc310e"
9084
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=mixtool.mod -o=$(GOBIN)/mixtool-v0.0.0-20250106141011-7472b3fc310e "github.com/monitoring-mixins/mixtool/cmd/mixtool"
9185

92-
UPDATECLI := $(GOBIN)/updatecli-v0.95.1
86+
UPDATECLI := $(GOBIN)/updatecli-v0.97.0
9387
$(UPDATECLI): $(BINGO_DIR)/updatecli.mod
9488
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
95-
@echo "(re)installing $(GOBIN)/updatecli-v0.95.1"
96-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=updatecli.mod -o=$(GOBIN)/updatecli-v0.95.1 "github.com/updatecli/updatecli"
89+
@echo "(re)installing $(GOBIN)/updatecli-v0.97.0"
90+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=updatecli.mod -o=$(GOBIN)/updatecli-v0.97.0 "github.com/updatecli/updatecli"
9791

Diff for: .bingo/goimports.mod

-5
This file was deleted.

Diff for: .bingo/goimports.sum

-30
This file was deleted.

Diff for: .bingo/golangci-lint.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
22

3-
go 1.23.0
3+
go 1.24.1
44

5-
require github.com/golangci/golangci-lint v1.64.7 // cmd/golangci-lint
5+
require github.com/golangci/golangci-lint/v2 v2.0.2 // cmd/golangci-lint

0 commit comments

Comments
 (0)