Merge pull request #1581 from justinsb/fix_1057

Record git version of what we're building
This commit is contained in:
Justin Santa Barbara 2017-01-25 00:16:38 -05:00 committed by GitHub
commit 8154ab7bd2
1 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,8 @@ MAKEDIR:=$(strip $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))"))
# Keep in sync with upup/models/cloudup/resources/addons/dns-controller/
DNS_CONTROLLER_TAG=1.5.1
GITSHA := $(shell cd ${GOPATH_1ST}/src/k8s.io/kops; git describe --always)
ifndef VERSION
# To keep both CI and end-users building from source happy,
# we expect that CI sets CI=1.
@ -45,11 +47,10 @@ ifndef VERSION
ifndef CI
VERSION=1.5.0-alpha4
else
VERSION := git-$(shell git describe --always)
VERSION := git-${GITSHA}
endif
endif
GITSHA := $(shell git describe --always)
# Go exports: