Skip to content

Commit

Permalink
Fix version sub-command (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakado authored Nov 19, 2022
1 parent 14d95be commit eec4166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ builds:
- linux
- windows
- darwin
ldflags: "-s -w -X internal/build.Version={{.Tag}} -X internal/build.CommitHash={{.FullCommit}}"
ldflags: "-s -w -X github.com/defer-panic/dp-cli/internal/build.Version={{.Tag}} -X github.com/defer-panic/dp-cli/internal/build.CommitHash={{.FullCommit}}"
archives:
- replacements:
darwin: Darwin
Expand Down
2 changes: 1 addition & 1 deletion internal/build/build.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package build

const (
var (
Version = "snapshot"
CommitHash = "unknown"
)

0 comments on commit eec4166

Please sign in to comment.