Skip to content

Commit 88f72fd

Browse files
committed
[chore] upgrade to goreleaser v2
Signed-off-by: grokspawn <jordan@nimblewidget.com>
1 parent f1de601 commit 88f72fd

7 files changed

Lines changed: 444 additions & 1198 deletions

File tree

.bingo/Variables.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
2929
@echo "(re)installing $(GOBIN)/golangci-lint-v1.64.6"
3030
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.64.6 "github.com/golangci/golangci-lint/cmd/golangci-lint"
3131

32-
GORELEASER := $(GOBIN)/goreleaser-v1.26.2
32+
GORELEASER := $(GOBIN)/goreleaser-v2.11.2
3333
$(GORELEASER): $(BINGO_DIR)/goreleaser.mod
3434
@# 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)/goreleaser-v1.26.2"
36-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goreleaser.mod -o=$(GOBIN)/goreleaser-v1.26.2 "github.com/goreleaser/goreleaser"
35+
@echo "(re)installing $(GOBIN)/goreleaser-v2.11.2"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=goreleaser.mod -o=$(GOBIN)/goreleaser-v2.11.2 "github.com/goreleaser/goreleaser/v2"
3737

3838
SETUP_ENVTEST := $(GOBIN)/setup-envtest-v0.0.0-20250109154033-1de5a3e8bae9
3939
$(SETUP_ENVTEST): $(BINGO_DIR)/setup-envtest.mod

.bingo/goreleaser.mod

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

3-
go 1.22
3+
go 1.24.4
44

5-
toolchain go1.22.5
6-
7-
require github.com/goreleaser/goreleaser v1.26.2
5+
require github.com/goreleaser/goreleaser/v2 v2.11.2

.bingo/goreleaser.sum

Lines changed: 433 additions & 1182 deletions
Large diffs are not rendered by default.

.bingo/variables.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BINGO="${GOBIN}/bingo-v0.9.0"
1212

1313
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.64.6"
1414

15-
GORELEASER="${GOBIN}/goreleaser-v1.26.2"
15+
GORELEASER="${GOBIN}/goreleaser-v2.11.2"
1616

1717
SETUP_ENVTEST="${GOBIN}/setup-envtest-v0.0.0-20250109154033-1de5a3e8bae9"
1818

.goreleaser.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
# Global environment variables for builds.
24
env:
35
- GO111MODULE=on
@@ -33,14 +35,9 @@ builds:
3335
- linux_ppc64le
3436
- linux_s390x
3537

36-
# Use most recent tag and short commit for snapshot version.
37-
snapshot:
38-
name_template: "{{ .Env.GIT_VERSION }}"
39-
4038
# We don't use archives, so skip creating them.
4139
archives:
42-
- format: binary
43-
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
40+
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
4441

4542
checksum:
4643
name_template: "checksums.txt"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bingo-upgrade: $(BINGO) #EXHELP Upgrade tools
7272
done
7373

7474
.PHONY: release
75-
release: GORELEASER_ARGS ?= --snapshot --clean --skip-sign
75+
release: GORELEASER_ARGS ?= --snapshot --clean --skip=sign
7676
release: $(GORELEASER)
7777
$(GORELEASER) $(GORELEASER_ARGS)
7878

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/operator-framework/helm-operator-plugins
22

3-
go 1.24.0
3+
go 1.24.4
44

55
require (
66
github.com/go-logr/logr v1.4.3

0 commit comments

Comments
 (0)