Skip to content

Commit 235f355

Browse files
committed
fix releases
1 parent 0d57fb5 commit 235f355

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@
1111
# Output of the go coverage tool, specifically when used with LiteIDE
1212
*.out
1313

14-
config.prod.yml
14+
config.prod.yml
15+
16+
# dist dir
17+
dist

.goreleaser.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ checksum:
2020
name_template: 'checksums.txt'
2121
snapshot:
2222
name_template: "{{ .Tag }}-next"
23+
ldflags:
24+
- -s -w -X cmd.version={{.Version}} -X cmd.commit={{.Commit}} -X cmd.date={{.Date}} -X cmd.builtBy=goreleaser
25+
- ./usemsan=-msan
2326
changelog:
2427
sort: asc
2528
filters:

internal/app/cmd/version.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var (
1515
version = "dev"
1616
commit = "none"
1717
date = "unknown"
18+
builtBy = "unknown"
1819
)
1920

2021
var versionCmd = &cobra.Command{
@@ -23,10 +24,11 @@ var versionCmd = &cobra.Command{
2324
Run: func(cmd *cobra.Command, args []string) {
2425
fmt.Println(
2526
fmt.Sprintf(
26-
`Current Beetle Version %v Commit %v, Built @%v`,
27+
`Current Beetle Version %v Commit %v, Built @%v by %v`,
2728
version,
2829
commit,
2930
date,
31+
builtBy,
3032
),
3133
)
3234

0 commit comments

Comments
 (0)