Commit 6f93d8f
authored
fix build flag (#937)
## What was changed
Fixed the ldflags path in `.goreleaser.yml` to correctly set the CLI
version at build time.
**Before:** `-X github.com/temporalio/cli/internal.Version={{.Version}}`
**After:** `-X
github.com/temporalio/cli/internal/temporalcli.Version={{.Version}}`
## Why?
The `Version` variable is defined in `internal/temporalcli/commands.go`,
not `internal/`. The incorrect path meant the ldflags were targeting a
non-existent variable, causing all released binaries to show `0.0.0-DEV`
instead of the actual version.
## Checklist
1. How was this tested:
- Built with `goreleaser build --snapshot --single-target`
- Before fix: `temporal version 0.0.0-DEV (Server 1.30.0, UI 2.45.0)`
- After fix: `temporal version 1.5.1-SNAPSHOT-31cf9eb (Server 1.30.0, UI
2.45.0)`
2. Any docs updates needed?
- No1 parent 24f7e67 commit 6f93d8f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments