remove versions
diff --git a/proto/private/versions.bzl b/proto/private/versions.bzl deleted file mode 100644 index 2e0335a..0000000 --- a/proto/private/versions.bzl +++ /dev/null
@@ -1,26 +0,0 @@ - -def get_archive_url(arch, version): - platform = arch.replace("darwin", "osx") - .replace("windows-x86_32", "win32") - .replace("windows-x86_64", "win64") - .replace("arm64", "aarch_64") - .replace("ppc64le", "ppcle_64") - .replace("s390x", "s390_64") - return "https://github.com/protocolbuffers/protobuf/releases/download/v{version}/protoc-{version}-{arch}.zip".format( - version = version, - arch = - ) - -PROTOC_VERSIONS = { - "24.4": { - "linux-arm64": "sha256-g6wAD/VA4kK2ov8iGjrIjS2OVUQ4AbeijpaX5fQOiTc=", - "linux-ppc64le": "sha256-v78zFoffihwhHMAcKXa/ke79bE5XgJyGyzQUDHWt1Ew=", - "linux-s390x": "sha256-WQaVzmrJCFWzY02ORrPr70ZyjN1UZkqfiSlPwi4k/BI=", - "linux-x86_32": "sha256-CQcHkwiWBzm3ZF/1ElSUFpGxJKPirU78zWw/GJLIjoc=", - "linux-x86_64": "sha256-WHE5jf1qyVSmrev0HxrjpN6RWjamqy/T6PLADUW1Dew=", - "darwin-arm64": "sha256-2AVESAOX/ooF2Wb7opHPEjOtDbDrwk7HLXvQd9bnrFk=", - "darwin-x86_64": "sha256-bDtr9AONczttMfHMRRamVlcLW1qvuWa2UPgYKv0LmM8=", - "windows-x86_32": "sha256-hwSIyBFwZkv58HR8Z/SDwOOHtXySmLY5skd6xgAHVjw=", - "windows-x86_64": "sha256-jz+S+/fdKZUSnm/iI8B8CqqX+xgvGc7PtCTpFGsnPrY=" - } -} \ No newline at end of file
diff --git a/tools/mirror_releases.sh b/tools/mirror_releases.sh deleted file mode 100755 index 0c70b10..0000000 --- a/tools/mirror_releases.sh +++ /dev/null
@@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -o nounset -o pipefail - -JQ_FILTER=\ -'map({ - "key": .tag_name | ltrimstr("v"), - "value": .assets - | map( select( (.name | startswith("protoc-")) and (.name | contains("-universal_binary") | not ) ) ) - | map({ - key: .name - | sub("^protoc-[\\d+.?]+-"; "") - | rtrimstr(".zip"), - value: "sha256-" - }) | from_entries -}) | from_entries -' - -INFO="$(curl --silent -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/protocolbuffers/protobuf/releases?per_page=1 | jq "$JQ_FILTER")" - -for VERSION in $(jq -r 'keys | join("\n")' <<< $INFO); do - for PLATFORM in $(jq -r ".[\"$VERSION\"] | keys | join(\"\n\")" <<< $INFO); do - SHA256=$(curl -fLs "https://github.com/protocolbuffers/protobuf/releases/download/v$VERSION/protoc-$VERSION-$PLATFORM.zip" | shasum -a 256 | xxd -r -p | base64) - INFO=$(jq ".[\"$VERSION\"][\"$PLATFORM\"] = \"sha256-$SHA256\"" <<< $INFO) - done -done - - -JQ_POSTPROCESS=\ -'. | to_entries | map({ - key: .key, - value: .value | to_entries | map({ - key: .key - | sub("osx"; "darwin") - | sub("win32"; "windows-x86_32") - | sub("win64"; "windows-x86_64") - | sub("aarch_64"; "arm64") - | sub("ppcle_64"; "ppc64le") - | sub("s390_64"; "s390x"), - value: .value - }) | from_entries -}) | from_entries -' - -echo -n "PROTOC_VERSIONS = " -echo $INFO | jq -M "$JQ_POSTPROCESS" - -echo "" -echo "Copy the version info into proto/private/versions.bzl" \ No newline at end of file