Update install_protoc.sh script to support apple architectures #732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upon pulling a fresh copy of the repo and executing
make image/build
theinstall_protoc.sh
step fails with the following error/output:After quickly glancing at the output and the URL being constructed to download
protoc
, this is the URL generatedFor Apple M-series laptops,
aarch64
should beaarch_64
for the URL to resolve correctly.This PR addresses this by simply piggybacking off of the
$ARCH
check to set that variable correctly. Now it will check forarm*
ORaarch64
and set the$ARCH
variable toaarch_64
.How Has This Been Tested?
I tested this locally by execute the command as described above, making the change, then running the
make image/build
command again. The docker image builds with the following output:Merge criteria:
DCO
check)If you have UI changes