Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Bump version to 0.4.0…
Browse files Browse the repository at this point in the history
And fix cross-binary script.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jan 10, 2017
1 parent 2e320f6 commit 7c59e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion hack/cross-binary
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ fi
# Get rid of existing binaries
rm -f bundles/libcompose-cli*

BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
GITCOMMIT=$(git rev-parse --short HEAD)

# Build binaries
for OS in ${OS_PLATFORM_ARG[@]}; do
for ARCH in ${OS_ARCH_ARG[@]}; do
Expand All @@ -33,7 +36,7 @@ for OS in ${OS_PLATFORM_ARG[@]}; do
fi
echo "Building binary for $OS/$ARCH..."
GOARCH=$ARCH GOOS=$OS CGO_ENABLED=0 go build \
-ldflags="-w -X github.com/docker/libcompose/version.GITCOMMIT=`git rev-parse --short HEAD`" \
-ldflags="-w -X github.com/docker/libcompose/version.GITCOMMIT=${GITCOMMIT} -X github.com/docker/libcompose/version.BUILDTIME=${BUILDTIME} -X github.com/docker/libcompose/version.SHOWWARNING=${SHOWWARNING}" \
-o ${OUTPUT_BIN} ./cli/main
done
done
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package version

var (
// VERSION should be updated by hand at each release
VERSION = "0.4.0-dev"
VERSION = "0.4.0"

// GITCOMMIT will be overwritten automatically by the build system
GITCOMMIT = "HEAD"
Expand Down

0 comments on commit 7c59e34

Please sign in to comment.