From fcb0ac95fa506388ecedffab48f5d90d96aa73d1 Mon Sep 17 00:00:00 2001 From: Adam Mohammed Date: Mon, 9 Dec 2024 13:08:24 -0500 Subject: [PATCH] Update deprecated goreleaser keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're currently using go-releaser v2.4.8-pro and the latest iam-runtime-infratographer builds have had the following log messages: ``` • setting defaults • DEPRECATED: snapshot.name_template should not be used anymore, check https://goreleaser.com/deprecations#snapshotnametemplate for more info • DEPRECATED: nightly.name_template should not be used anymore, check https://goreleaser.com/deprecations#nightlynametemplate for more info ``` Both of these keys were renamed to `version_template` in v2, this PR just updates them so we are using the latest configuration keys. --- goreleaser/base.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goreleaser/base.yml b/goreleaser/base.yml index ed18ae4..47a4bfa 100644 --- a/goreleaser/base.yml +++ b/goreleaser/base.yml @@ -27,7 +27,7 @@ checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: disable: false @@ -99,7 +99,7 @@ release: - glob: ./schema.graphql nightly: - name_template: main-latest + version_template: main-latest tag_name: main-latest publish_release: false keep_single_release: true