Explorar o código

removed remaining 'go get -u' calls, added explanatory comment, added additional failure checking

Michael Goldberger %!s(int64=9) %!d(string=hai) anos
pai
achega
a06d28bca2
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  1. 10 2
      MobileLibrary/Android/make.bash

+ 10 - 2
MobileLibrary/Android/make.bash

@@ -7,10 +7,18 @@ if [ ! -f make.bash ]; then
   exit 1
   exit 1
 fi
 fi
 
 
-GOOS=arm go get -d -v -u github.com/Psiphon-Inc/openssl
+# Don't use '-u' to force updates because the docker builds always pull
+# the latest versions. Outside of Docker, be aware that these dependencies
+# will not be overridden w/ new versions if they already exist in $GOPATH
+
+GOOS=arm go get -d -v github.com/psiphon-inc/openssl
+if [ $? != 0 ]; then
+  echo "..'go get -d -v github.com/psiphon-inc/openssl' failed, exiting"
+  exit $?
+fi
 GOOS=arm go get -d -v github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon
 GOOS=arm go get -d -v github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon
 if [ $? != 0 ]; then
 if [ $? != 0 ]; then
-  echo "..'go get' failed, exiting"
+  echo "..'go get -d -v github.com/Psiphon-Labs/psiphon-tunnel-core/psiphon' failed, exiting"
   exit $?
   exit $?
 fi
 fi