This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818# Get rid of existing binaries
1919rm -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
2225for 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
3942done
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package version
22
33var (
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"
You can’t perform that action at this time.
0 commit comments