Changed the maven URL to use https when building dist artifacts

pull/7171/head^2 v3.11.3
Rafi Kamal 5 years ago committed by GitHub
parent 5f3d6599f6
commit 498de9f761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      protoc-artifacts/build-zip.sh

@ -100,7 +100,7 @@ for((i=0;i<${#FILE_NAMES[@]};i+=2));do
BINARY="$TARGET"
fi
BINARY_NAME=${FILE_NAMES[$(($i+1))]}
BINARY_URL=http://repo1.maven.org/maven2/com/google/protobuf/$TARGET/${VERSION_NUMBER}/$TARGET-${VERSION_NUMBER}-${BINARY_NAME}
BINARY_URL=https://repo1.maven.org/maven2/com/google/protobuf/$TARGET/${VERSION_NUMBER}/$TARGET-${VERSION_NUMBER}-${BINARY_NAME}
if ! wget ${BINARY_URL} -O ${DIR}/bin/$BINARY &> /dev/null; then
echo "[ERROR] Failed to download ${BINARY_URL}" >&2
echo "[ERROR] Skipped $TARGET-${VERSION_NAME}-${ZIP_NAME}" >&2

Loading…
Cancel
Save