Explorar el Código

Merge pull request #11245 from YoyinZyc/prevent-darwin-build-3.3

scripts: avoid release builds on darwin machine.
Gyuho Lee hace 6 años
padre
commit
660dc83e19
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      scripts/build-binary

+ 5 - 0
scripts/build-binary

@@ -57,6 +57,11 @@ function main {
 	cd release
 	cd release
 	setup_env "${PROJ}" "${VER}"
 	setup_env "${PROJ}" "${VER}"
 
 
+	if [[ $(go env GOOS) == "darwin" ]]; then
+		echo "Please use linux machine for release builds."
+		exit 1
+	fi
+
 	for os in darwin windows linux; do
 	for os in darwin windows linux; do
 		export GOOS=${os}
 		export GOOS=${os}
 		TARGET_ARCHS=("amd64")
 		TARGET_ARCHS=("amd64")