update configuration to v2

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
This commit is contained in:
Terry Howe 2025-10-29 13:30:27 -06:00
parent e7bea8513c
commit e368f170af
No known key found for this signature in database
2 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,5 @@
version: 2
project_name: helm
before:
@ -50,7 +52,7 @@ builds:
dir: .
archives:
- format: tar.gz
- id: default
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}-
@ -59,16 +61,15 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc

View file

@ -163,7 +163,8 @@ gen-test-golden: test-unit
# without a go.mod file when downloading the following dependencies
$(GORELEASER):
(cd /; go install github.com/goreleaser/goreleaser@latest)
echo go install github.com/goreleaser/goreleaser/v2@latest
(cd /; go install github.com/goreleaser/goreleaser/v2@latest)
$(GOIMPORTS):
(cd /; go install golang.org/x/tools/cmd/goimports@latest)