File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1717# Set SCRIPT_DIR to the current directory of this file.
1818SCRIPT_DIR=$( cd -P " $( dirname " $0 " ) " > /dev/null 2>&1 && pwd)
1919SCRIPT_FILE=" ${SCRIPT_DIR} /$( basename " $0 " ) "
20-
2120# #
2221# # Local Development
2322# #
@@ -82,12 +81,17 @@ function get_protoc() {
8281 protoc_go_url=" https://github.com/protocolbuffers/protobuf-go/releases/download/v${proto_go_version} /protoc-gen-go.v${proto_go_version} .${os} .${arch} .tar.gz"
8382 elif [[ " $os " == " linux" ]] ; then
8483 protoc_url=" https://github.com/protocolbuffers/protobuf/releases/download/v${protoc_version} /protoc-${protoc_version} -${os} -${arch} .zip"
85- protoc_go_url=" https://github.com/protocolbuffers/protobuf-go/releases/download/v${proto_go_version} /protoc-gen-go.v${proto_go_version} .${os} .${arch} .tar.gz"
84+ if [[ " $arch " == " x86_64" ]] ; then
85+ goarch=" amd64"
86+ else
87+ goarch=" $arch "
88+ fi
89+ protoc_go_url=" https://github.com/protocolbuffers/protobuf-go/releases/download/v${proto_go_version} /protoc-gen-go.v${proto_go_version} .${os} .${goarch} .tar.gz"
8690 else
8791 echo " Unsupported protoc platform : $os $arch "
8892 exit 1
8993 fi
90-
94+
9195 echo " Downloading protoc v$protoc_version ..."
9296 curl -v -sSL " $protoc_url " -o protoc.zip
9397 mkdir -p " $versioned_cmd "
You can’t perform that action at this time.
0 commit comments