Skip to content

Commit a8ea12b

Browse files
chore: BREAKING CHANGE install goreleaser v2 instead of v1 (#105)
* chore: BREAKING CHANGE install goreleaser v2 * fix: update the tests .goreleaser.yml file --------- Co-authored-by: Patrick Guinard <patrick@public.com>
1 parent f525d3b commit a8ea12b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/scripts/install-goreleaser.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
GO_STR_VERSION="$(echo "${GO_STR_VERSION}"| circleci env subst)"
44

5-
go install github.com/goreleaser/goreleaser@"${GO_STR_VERSION}"
6-
goreleaser --version
5+
go install github.com/goreleaser/goreleaser/v2@"${GO_STR_VERSION}"
6+
goreleaser --version

tests/.goreleaser.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
33

4-
# The lines bellow are called `modelines`. See `:help modeline`
4+
# The lines below are called `modelines`. See `:help modeline`
55
# Feel free to remove those if you don't want/need to use them.
66
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
77
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
88

9+
version: 2
10+
911
before:
1012
hooks:
1113
# You may remove this if you don't use go modules.
@@ -22,7 +24,7 @@ builds:
2224
- darwin
2325

2426
archives:
25-
- format: tar.gz
27+
- formats: [tar.gz]
2628
# this name template makes the OS and Arch compatible with the results of `uname`.
2729
name_template: >-
2830
{{ .ProjectName }}_
@@ -34,7 +36,7 @@ archives:
3436
# use zip for windows archives
3537
format_overrides:
3638
- goos: windows
37-
format: zip
39+
formats: [zip]
3840

3941
changelog:
4042
sort: asc

0 commit comments

Comments
 (0)