File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ bootstrap:
4242glideup :
4343 ${DEV_ENV_CMD} glide up
4444
45- build :
46- ${DEV_ENV_CMD} make binary-build
45+ build : binary-build
4746 @$(call check-static-binary,deis)
4847
4948build-all :
@@ -53,7 +52,7 @@ build-all:
5352 -output=" $( DIST_DIR) /deis-${VERSION} -{{.OS}}-{{.Arch}}" .
5453
5554binary-build :
56- go build -a -installsuffix cgo -ldflags ' -s ' -o deis .
55+ ${DEV_ENV_CMD} go build -a -installsuffix cgo -ldflags " -s -X ${repo_path} /version.BuildVersion= ${VERSION} " -o deis .
5756
5857dist : build-all
5958
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ Use 'deis help [command]' to learn more.
2020 return err
2121 }
2222
23- fmt .Println (version .Version )
23+ v := version .Version
24+ if version .BuildVersion != "" {
25+ v = fmt .Sprintf ("%s-%s" , version .Version , version .BuildVersion )
26+ }
27+ fmt .Println (v )
28+
2429 return nil
2530}
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ const Version = "2.0.0-dev"
55
66// API identifies the latest Deis api verison
77const APIVersion = "2.0"
8+
9+ // Note: This value is overwritten by the linker during build
10+ var BuildVersion = ""
You can’t perform that action at this time.
0 commit comments