Skip to content

Commit

Permalink
Revert release naming to align with prior format (#99)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dekimsey committed Sep 28, 2023
1 parent 609843e commit 807a790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
.vscode
.DS_Store

Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ builds:
archives:
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
Expand Down

0 comments on commit 807a790

Please sign in to comment.