Commit 9fe6682
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
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
0 commit comments