diff --git a/Rakefile b/Rakefile index 380e1da3..778ac8c0 100644 --- a/Rakefile +++ b/Rakefile @@ -2,11 +2,13 @@ # Rakefile for agent-payload # -protoc_binary="protoc" -protoc_version="3.5.1" +protoc_legacy_version="3.5.1" +protoc_legacy_binary="/tmp/protoc#{protoc_legacy_version}" + +protoc_version="21.12" +protoc_binary="/tmp/protoc#{protoc_version}" + gogo_dir="/tmp/gogo" -protoc_binary_2="protoc" -protoc_version_2="21.12" protoc_gen_go_dir="/tmp/protoc-gen-go" protoc_jsonschema_version="73d5723" @@ -14,38 +16,36 @@ protoc_jsonschema_version="73d5723" namespace :codegen do task :install_protoc do - if `bash -c "protoc --version"` != "libprotoc ${protoc_version}" - protoc_binary="/tmp/protoc#{protoc_version}" + if `bash -c "protoc --version"` != "libprotoc ${protoc_legacy_version}" sh <<-EOF /bin/bash <