We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517a545 commit be48408Copy full SHA for be48408
bin/dist
@@ -3,7 +3,7 @@ cd $(cd `dirname "$0"`; cd ..; pwd)
3
4
VERSION=$1
5
if [ -z $VERSION ]; then
6
- echo "Error: VERSION must be set."
+ echo "Usage: $0 VERSION"
7
exit 1
8
fi
9
@@ -20,7 +20,7 @@ for target in $TARGETS; do
20
NAME=${NAME}.exe
21
22
23
- go build -v -o pkg/${NAME}
+ go build -ldflags "-X main.build_version $VERSION" -o pkg/${NAME}
24
25
pushd pkg
26
zip terraform-inventory_${VERSION}_${GOOS}_${GOARCH}.zip ${NAME}
0 commit comments