Skip to content

Commit edcf4b0

Browse files
authored
Fix .goreleaser.yml file (#260)
The `archives.replacements` durective of the .goreleaser.yaml file has been deprecated since 2022-11-24 (v1.14.0) and now removed in v1.19.0. Therefore the .goreleaser.yaml file has to be updated. Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
1 parent 49f9971 commit edcf4b0

File tree

3 files changed

+47
-46
lines changed

3 files changed

+47
-46
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ out/
2222
.vscode
2323
.history
2424
.netrc
25+
26+
dist/

.goreleaser.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- linux
14+
- windows
15+
- darwin
16+
17+
archives:
18+
- format: tar.gz
19+
# this name template makes the OS and Arch compatible with the results of uname.
20+
name_template: >-
21+
{{ .ProjectName }}_
22+
{{- title .Os }}_
23+
{{- if eq .Arch "amd64" }}x86_64
24+
{{- else if eq .Arch "386" }}i386
25+
{{- else }}{{ .Arch }}{{ end }}
26+
{{- if .Arm }}v{{ .Arm }}{{ end }}
27+
# use zip for windows archives
28+
format_overrides:
29+
- goos: windows
30+
format: zip
31+
checksum:
32+
name_template: 'checksums.txt'
33+
snapshot:
34+
name_template: "{{ incpatch .Version }}-next"
35+
changelog:
36+
sort: asc
37+
filters:
38+
exclude:
39+
- '^docs:'
40+
- '^test:'
41+
42+
# The lines beneath this are called `modelines`. See `:help modeline`
43+
# Feel free to remove those if you don't want/use them.
44+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
45+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

.goreleaser.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)