Skip to content

Commit 807a790

Browse files
authored
Revert release naming to align with prior format (#99)
actions/setup-copywrite relies on the [specific name](https://github.com/hashicorp/setup-copywrite/blob/main/action.js#L65) format. Note: the `s/amd64/x86_64/g` behavior is a historical artifact, we could update it in the future if we coordinate with the action. Error: ``` Run hashicorp/setup-copywrite@867a1a2 Error: Unable to find asset matching copywrite_0.16.5_linux_x86_64.tar.gz in the v0.16.5 release ``` After this change: ``` • archives • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_windows_x86_64.zip • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_linux_x86_64.tar.gz • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_darwin_x86_64.tar.gz • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_darwin_arm64.tar.gz • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_linux_arm64.tar.gz • creating archive=dist/copywrite_0.16.5-SNAPSHOT-52379d7_windows_arm64.zip ``` Partial revert of changes made in PR #98 nit: Also adding `dist/` to our ignores
1 parent 609843e commit 807a790

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist/
12
.vscode
23
.DS_Store
34

.goreleaser.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ builds:
2121
archives:
2222
- name_template: >-
2323
{{- .ProjectName }}_
24-
{{- title .Os }}_
25-
{{- if eq .Arch "amd64" }}x86_64
26-
{{- else }}{{ .Arch }}{{ end }}
24+
{{- .Version }}_
25+
{{- .Os }}_
26+
{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
2727
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2828
format_overrides:
2929
- goos: windows

0 commit comments

Comments
 (0)