From 8c943d1da20a41815c483f1e3fe28406a329f2b0 Mon Sep 17 00:00:00 2001
From: Dylan Bourque <dylan.bourque@crowdstrike.com>
Date: Mon, 3 Jul 2023 08:40:21 -0500
Subject: [PATCH] chore(CI): update goreleaser config to use `name_template`
 instead of `replacements`

---
 .goreleaser.yaml | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 10c001a..582d021 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -46,15 +46,7 @@ builds:
       - darwin
       - windows
 archives:
-  - replacements:
-      darwin: Darwin
-      linux: Linux
-      windows: Windows
-      386: i386
-      amd64: x86_64
-    # replacements is deprecated and needs to be replaced but using name_template resulted in duplicate
-    # archive names :(
-    #name_template: '{{ .ProjectName }}_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "386" }}i386{{- else }}{{ .Arch }}{{ end }}'
+  - name_template: '{{.ProjectName}}_{{.Version}}_{{title .Os}}_{{if eq .Arch "amd64"}}x86_64{{else if eq .Arch "386"}}i386{{else}}{{.Arch}}{{end}}{{if .Arm}}v{{.Arm}}{{end}}'
     format_overrides:
       - goos: windows
         format: zip