fix git commit in odo version
path to GITCOMMIT variable in ldflags was incorrect
@@ -5,7 +5,7 @@ else
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
endif
PKGS := $(shell go list ./... | grep -v $(PROJECT)/vendor | grep -v $(PROJECT)/tests )
-COMMON_FLAGS := -X $(PROJECT)/pkg/version/version.GITCOMMIT=$(GITCOMMIT)
+COMMON_FLAGS := -X $(PROJECT)/pkg/version.GITCOMMIT=$(GITCOMMIT)
BUILD_FLAGS := -ldflags="-w $(COMMON_FLAGS)"
DEBUG_BUILD_FLAGS := -ldflags="$(COMMON_FLAGS)"
FILES := odo dist
@@ -127,6 +127,7 @@ prepare-release: cross
configure-installer-tests-cluster:
. ./scripts/configure-installer-tests-cluster.sh
+
.PHONY: test
test:
go test -race $(PKGS)
