Skip to content

Commit e167de7

Browse files
brtkwrclaude
andcommitted
fix: inject version from git tag at build time
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8f53f5d commit e167de7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ builds:
1616
- amd64
1717
- arm64
1818
ldflags:
19-
- -s -w
19+
- -s -w -X main.version={{ .Version }}
2020

2121
archives:
2222
- formats:

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/charmbracelet/lipgloss"
1919
)
2020

21-
const version = "0.5.0"
21+
var version = "dev"
2222

2323
// Message represents a conversation message
2424
type Message struct {

0 commit comments

Comments
 (0)