Skip to content

Commit 9fe6682

Browse files
authored
fix: remove redundant component name from archive template (#18)
## Problem Archive names are unnecessarily long and duplicate the component name: ``` protoc-gen-elixir-grpc_protoc-gen-elixir-grpc@v0.2.0_Darwin_arm64.tar.gz ^^^^^^^^^^^^^^^^^^^^^^^^ duplicated! ``` ## Root Cause The GoReleaser archive template was using: ```yaml {{ .Env.BUILD_COMPONENT }}_{{- .Version }}_... ``` Where: - `BUILD_COMPONENT` = `protoc-gen-elixir-grpc` - `.Version` = `protoc-gen-elixir-grpc@v0.2.0` (full monorepo tag) This resulted in the component name appearing twice. ## Solution Remove the `{{ .Env.BUILD_COMPONENT }}` prefix from the archive template since `.Version` already contains the full monorepo tag format. ## Result Cleaner archive names: ``` protoc-gen-elixir-grpc@v0.2.0_Darwin_arm64.tar.gz protoc-gen-elixir-grpc@v0.2.0_Linux_x86_64.tar.gz protoc-gen-elixir-grpc@v0.2.0_Windows_x86_64.tar.gz ``` ## Testing Validated locally with: ```bash BUILD_COMPONENT="protoc-gen-elixir-grpc" goreleaser release --snapshot --skip=validate ``` Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent 626a842 commit 9fe6682

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

.github/goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ builds:
4747
archives:
4848
- id: default
4949
name_template: >-
50-
{{ .Env.BUILD_COMPONENT }}_
5150
{{- .Version }}_
5251
{{- title .Os }}_
5352
{{- if eq .Arch "amd64" }}x86_64

0 commit comments

Comments
 (0)