VOL-4905 - Deploy new voltctl version.
makefiles/release/release-build.mk
----------------------------------
o Careful with echo-quoting within GO_SH commands, single quotes
cause cryptic breakage and word splitting on space.
o Add more find+print, display contents of container:/app/release.
Change-Id: I69c4a560ca024aad895a647efe7bb5156f678823
diff --git a/VERSION b/VERSION
index 67e9d0a..aaaa390 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.8.42
+1.8.43
diff --git a/makefiles/release/release-build.mk b/makefiles/release/release-build.mk
index 41a1f41..5a50554 100644
--- a/makefiles/release/release-build.mk
+++ b/makefiles/release/release-build.mk
@@ -34,7 +34,7 @@
# [DEBUG] Yes this will take a while but where-4-art-thou-golang-in-docker-image-(?)
@echo -e "\n** golang interpreter"
- # find '/usr/local' '/go' '/usr/bin' '/bin' -name 'go' ! -type d -ls;
+ # find '/usr/local' '/go' '/usr/bin' '/bin' -name 'go' ! -type d -print;
# -${GO_SH} $(quote-single) find / -name 'go' ! -type d -print $(quote-single)
-$(HIDE)${GO_SH} $(call quoted,which$(space)-a$(space)go)
@@ -48,13 +48,25 @@
@echo
@echo '** -----------------------------------------------------------------------'
+ @echo '** Filesystem: docker-container::/app (wanted: release/)'
+ @echo '** -----------------------------------------------------------------------'
+ ${GO_SH} $(quote-single)find /app \( -name ".git" -o -name "vendor" -o -name "makefiles" -o -name "internal" -o -name "pkg" \) -prune -o -print$(quote-single)
+ @echo
+ @echo '** /app/release permissions'
+# ${GO_SH} $(quote-single)umask 022 && chmod 700 /app/release $(quote-single)
+ ${GO_SH} $(quote-single)/bin/ls -ld /app/release $(quote-single)
+
+ @echo
+ @echo '** -----------------------------------------------------------------------'
@echo '** Docker builds bins into mounted filesystem:'
@echo '** container:/app/relase'
@echo '** localhost:{pwd}/release'
@echo '** -----------------------------------------------------------------------'
+
+# NOTE: Use double quotes in echo strings else command breakage
${GO_SH} $(quote-single) \
- echo ;\
- echo 'Building release binaries:' ;\
+ echo ;\
+ echo "build: ENTER" ;\
set -e -o pipefail; \
set -x ; \
for x in ${RELEASE_OS_ARCH}; do \
@@ -65,7 +77,8 @@
echo "** Building: $$OUT_PATH (ENTER)"; \
GOOS=$${x%-*} GOARCH=$${x#*-} go build -mod=vendor -v $(LDFLAGS) -o "$$OUT_PATH" cmd/voltctl/voltctl.go; \
echo "** Building: $$OUT_PATH (LEAVE)"; \
- done \
+ done ;\
+ echo "build: LEAVE" \
$(quote-single)
@echo