Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

.PHONY: build
build: build-deps
go build -mod=vendor -o pd ./command
go build -mod=vendor -ldflags "-X main.version=$$(git describe --tags --abbrev=0)" -o pd ./command

.PHONY: build-deps
build-deps:
Expand Down
4 changes: 1 addition & 3 deletions command/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import (
"github.com/mitchellh/cli"
)

const (
version = "0.0.0"
)
var version = "0.0.0"

func loadCommands() map[string]cli.CommandFactory {
return map[string]cli.CommandFactory{
Expand Down