Skip to content

Commit

Permalink
Control version at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyMoud committed Oct 9, 2024
1 parent be9297c commit 9ba6ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ before:
builds:
- env:
- CGO_ENABLED=0
ldflags:
- "-X 'github.com/mightymoud/sidekick/cmd.version={{.Tag}}'"
goos:
- linux
- windows
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/spf13/cobra"
)

var version = "v0.6.2"
var version = "dev"

var rootCmd = &cobra.Command{
Use: "sidekick",
Expand Down

0 comments on commit 9ba6ed5

Please sign in to comment.