Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 7c59e34

Browse files
committed
Bump version to 0.4.0…
And fix cross-binary script. Signed-off-by: Vincent Demeester <[email protected]>
1 parent 2e320f6 commit 7c59e34

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hack/cross-binary

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ fi
1818
# Get rid of existing binaries
1919
rm -f bundles/libcompose-cli*
2020

21+
BUILDTIME=$(date --rfc-3339 ns | sed -e 's/ /T/') &> /dev/null
22+
GITCOMMIT=$(git rev-parse --short HEAD)
23+
2124
# Build binaries
2225
for OS in ${OS_PLATFORM_ARG[@]}; do
2326
for ARCH in ${OS_ARCH_ARG[@]}; do
@@ -33,7 +36,7 @@ for OS in ${OS_PLATFORM_ARG[@]}; do
3336
fi
3437
echo "Building binary for $OS/$ARCH..."
3538
GOARCH=$ARCH GOOS=$OS CGO_ENABLED=0 go build \
36-
-ldflags="-w -X github.com/docker/libcompose/version.GITCOMMIT=`git rev-parse --short HEAD`" \
39+
-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}" \
3740
-o ${OUTPUT_BIN} ./cli/main
3841
done
3942
done

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package version
22

33
var (
44
// VERSION should be updated by hand at each release
5-
VERSION = "0.4.0-dev"
5+
VERSION = "0.4.0"
66

77
// GITCOMMIT will be overwritten automatically by the build system
88
GITCOMMIT = "HEAD"

0 commit comments

Comments
 (0)