forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update protoc to 3.17.3 and make install portable (argoproj#7932)
Signed-off-by: Jesse Suen <[email protected]>
- Loading branch information
Showing
16 changed files
with
75 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
hack/installers/checksums/protoc_3.17.3_darwin_amd64.zip.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
68901eb7ef5b55d7f2df3241ab0b8d97ee5192d3902c59e7adf461adc058e9f1 protoc_3.17.3_darwin_amd64.zip |
1 change: 1 addition & 0 deletions
1
hack/installers/checksums/protoc_3.17.3_darwin_arm64.zip.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
68901eb7ef5b55d7f2df3241ab0b8d97ee5192d3902c59e7adf461adc058e9f1 protoc_3.17.3_darwin_arm64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d4246a5136cf9cd1abc851c521a1ad6b8884df4feded8b9cbd5e2a2226d4b357 protoc_3.17.3_linux_amd64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ceb29d4890a31ba871829d22c2b7fa28f237d2b91ce4ea2a53e893d60a1cd502 protoc_3.17.3_linux_arm64.zip |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
|
||
KUSTOMIZE_VERSION=4.2.0 "$(dirname $0)/../install.sh" helm2-linux kustomize-linux protoc-linux | ||
KUSTOMIZE_VERSION=4.2.0 "$(dirname $0)/../install.sh" helm2-linux kustomize-linux protoc |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
set -eux -o pipefail | ||
|
||
PROJECT_ROOT=$(cd $(dirname ${BASH_SOURCE})/../..; pwd) | ||
DIST_PATH="${PROJECT_ROOT}/dist" | ||
PATH="${DIST_PATH}:${PATH}" | ||
|
||
. $(dirname $0)/../tool-versions.sh | ||
|
||
OS=$(go env GOOS) | ||
case $OS in | ||
darwin) | ||
# For macOS, the x86_64 binary is used even on Apple Silicon (it is run through rosetta), so | ||
# we download and install the x86_64 version. See: https://github.com/protocolbuffers/protobuf/pull/8557 | ||
protoc_os=osx | ||
protoc_arch=x86_64 | ||
;; | ||
*) | ||
protoc_os=linux | ||
case $ARCHITECTURE in | ||
arm64|arm) | ||
protoc_arch=aarch_64 | ||
;; | ||
*) | ||
protoc_arch=x86_64 | ||
;; | ||
esac | ||
;; | ||
esac | ||
|
||
export TARGET_FILE=protoc_${protoc_version}_${OS}_${ARCHITECTURE}.zip | ||
url=https://github.com/protocolbuffers/protobuf/releases/download/v${protoc_version}/protoc-${protoc_version}-${protoc_os}-${protoc_arch}.zip | ||
[ -e $DOWNLOADS/${TARGET_FILE} ] || curl -sLf --retry 3 -o $DOWNLOADS/${TARGET_FILE} ${url} | ||
$(dirname $0)/compare-chksum.sh | ||
mkdir -p /tmp/protoc-${protoc_version} | ||
unzip -o $DOWNLOADS/${TARGET_FILE} -d /tmp/protoc-${protoc_version} | ||
mkdir -p ${DIST_PATH}/protoc-include | ||
cp /tmp/protoc-${protoc_version}/bin/protoc ${DIST_PATH}/protoc | ||
chmod +x ${DIST_PATH}/protoc | ||
cp -a /tmp/protoc-${protoc_version}/include/* ${DIST_PATH}/protoc-include | ||
chmod -R +rx ${DIST_PATH}/protoc-include | ||
protoc --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.