Skip to content

Commit

Permalink
Merge pull request #76 from Mirantis/fix/buildscripts
Browse files Browse the repository at this point in the history
Fix the Makefiles so `--buildinfo` and the version are set correctly
  • Loading branch information
evol262 authored Jun 15, 2022
2 parents 0737013 + 13c8570 commit b872f96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif
export VERSION?=$(shell (git describe --abbrev=0 --tags | sed -e 's/v//') || echo $(cat VERSION)-$(git log -1 --pretty='%h'))
PRERELEASE=`grep -q dev <<< "${VERSION}" && echo "pre" || echo ""`
REVISION?=`git log -1 --pretty='%h'`
export CRI_DOCKERD_LDFLAGS=-ldflags "-X github.com/Mirantis/cri-dockerd/version.Version=${VERSION} -X github.com/Mirantis/cri-dockerd/version.PreRelease=${PRERELEASE} -X github.com/Mirantis/cri-dockerd/version.BuildTime=${BUILD_DATE} -X github.com/Mirantis/cri-dockerd/version.GitCommit=${REVISION}"
export CRI_DOCKERD_LDFLAGS=-ldflags "-X github.com/Mirantis/cri-dockerd/cmd/version.Version=${VERSION} -X github.com/Mirantis/cri-dockerd/cmd/version.PreRelease=${PRERELEASE} -X github.com/Mirantis/cri-dockerd/cmd/version.BuildTime=${BUILD_DATE} -X github.com/Mirantis/cri-dockerd/cmd/version.GitCommit=${REVISION}"

.PHONY: help
help: ## show make targets
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.2-dev
0.2.3-dev
2 changes: 1 addition & 1 deletion cmd/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package version

var (
// Version of the product
Version = "0.2.1"
Version = "0.2.3"
// PreRelease is set during the build
PreRelease = ""
// GitCommit is set during the build
Expand Down

0 comments on commit b872f96

Please sign in to comment.