Skip to content

Commit

Permalink
fix: version flag (#353)
Browse files Browse the repository at this point in the history
* fix: version flag

close #347

Signed-off-by: Yvonnick Esnault <[email protected]>
  • Loading branch information
yesnault authored Jan 8, 2021
1 parent 984a392 commit 8d19a53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .build/core.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CI := $(if ${CI},${CI},0)
VERSION := $(if ${CDS_SEMVER},${CDS_SEMVER},snapshot)
CDS_VERSION := $(if ${CDS_VERSION},${CDS_VERSION},snapshot)
UNAME := $(shell uname)
UNAME_LOWERCASE := $(shell uname -s| tr A-Z a-z)
Expand Down
1 change: 0 additions & 1 deletion .build/go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ TEST_CMD = go test -v -timeout 600s -coverprofile=profile.coverprofile
TEST_C_CMD = go test -c -coverprofile=profile.coverprofile
TEST_RUN_ARGS = -test.v -test.timeout 600s -test.coverprofile=profile.coverprofile
CURRENT_PACKAGE = $(shell $(GO_LIST))
VERSION := $(if ${CDS_SEMVER},${CDS_SEMVER},snapshot)
TARGET_DIST := ./dist
TARGET_RESULTS := ./results

Expand Down
2 changes: 1 addition & 1 deletion cmd/venom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
##### ^^^^^^ make help ^^^^^^ #####

TARGET_NAME = venom
LDFLAGS = -ldflags "-X github.com/ovh/venom.Version=$(VERSION)"
LDFLAGS = -ldflags "-X github.com/ovh/venom.Version=$(if ${GIT_DESCRIBE},${GIT_DESCRIBE},snapshot)"

# If you want to enable the cross-compilation, uncomment the following line:
ENABLE_CROSS_COMPILATION := true
Expand Down

0 comments on commit 8d19a53

Please sign in to comment.