Skip to content

Commit

Permalink
[MER-2449] Replace the deprecated "replacements" (#178)
Browse files Browse the repository at this point in the history
https://goreleaser.com/deprecations/#archivesreplacements

archives.replacements is removed as of 2023-06-06.
  • Loading branch information
draftcode authored Jun 9, 2023
1 parent 1b48199 commit 80d82d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ builds:
release: {}

archives:
- replacements:
amd64: x86_64
darwin: macos
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "darwin" }}macos
{{- else }}{{ .Arch }}{{ end }}
# Push to the homebrew tap
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ repos:
hooks:
- id: golines
name: golines
files: ".+$"
files: ".+.go$"
language: system
entry: |
sh -c 'go run github.com/segmentio/golines -w .'
- id: goimports
name: goimports
files: ".+$"
files: ".+.go$"
language: system
entry: |
sh -c 'go run golang.org/x/tools/cmd/goimports@latest -w .'
Expand Down

0 comments on commit 80d82d2

Please sign in to comment.