From c1ce1016c72780522e2c76bf08f7ff594469b0c8 Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 6 Apr 2021 17:33:13 -0500 Subject: [PATCH] Render ruby protobufs to ruby lib --- internal/server/server.go | 2 +- lib/vagrant/protobufs/proto/vagrant_server/server_pb.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/server/server.go b/internal/server/server.go index 1363a47d9..d0410520b 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -15,7 +15,7 @@ import ( //go:generate sh -c "protoc -I`go list -m -f \"{{.Dir}}\" github.com/mitchellh/protostructure` -I`go list -m -f \"{{.Dir}}\" github.com/hashicorp/vagrant-plugin-sdk`/proto/vagrant_plugin_sdk -I../../vendor/proto/api-common-protos -I. --go-grpc_out=./proto/vagrant_server --go-grpc_opt=module=github.com/hashicorp/vagrant/internal/server/proto/vagrant_server --go_out=./proto/vagrant_server --go_opt=module=github.com/hashicorp/vagrant/internal/server/proto/vagrant_server proto/vagrant_server/*.proto" //go:generate sh -c "protoc -I../../vendor/proto/api-common-protos -I. --go-grpc_out=./proto/ruby_vagrant --go-grpc_opt=module=github.com/hashicorp/vagrant/internal/server/proto/ruby_vagrant --go_out=./proto/ruby_vagrant --go_opt=module=github.com/hashicorp/vagrant/internal/server/proto/ruby_vagrant proto/ruby_vagrant/*.proto" -//go:generate sh -c "grpc_tools_ruby_protoc -I`go list -m -f \"{{.Dir}}\" github.com/mitchellh/protostructure` -I`go list -m -f \"{{.Dir}}\" github.com/hashicorp/vagrant-plugin-sdk`/proto/vagrant_plugin_sdk -I../../vendor/proto/api-common-protos -I. --grpc_out=./gen/ruby --ruby_out=./gen/ruby proto/vagrant_server/*.proto proto/ruby_vagrant/*.proto" +//go:generate sh -c "grpc_tools_ruby_protoc -I`go list -m -f \"{{.Dir}}\" github.com/mitchellh/protostructure` -I`go list -m -f \"{{.Dir}}\" github.com/hashicorp/vagrant-plugin-sdk`/proto/vagrant_plugin_sdk -I../../vendor/proto/api-common-protos -I. --grpc_out=../../lib/vagrant/protobufs/ --ruby_out=../../lib/vagrant/protobufs/ proto/vagrant_server/*.proto proto/ruby_vagrant/*.proto" // mockery -all -case underscore -dir ./gen -output ./gen/mocks diff --git a/lib/vagrant/protobufs/proto/vagrant_server/server_pb.rb b/lib/vagrant/protobufs/proto/vagrant_server/server_pb.rb index 03eb82227..698494b16 100644 --- a/lib/vagrant/protobufs/proto/vagrant_server/server_pb.rb +++ b/lib/vagrant/protobufs/proto/vagrant_server/server_pb.rb @@ -57,6 +57,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :physical_state, :enum, 50, "hashicorp.vagrant.Operation.PhysicalState" optional :remote_enabled, :bool, 51 optional :data_source, :message, 52, "hashicorp.vagrant.Job.DataSource" + optional :provider, :string, 53 end add_message "hashicorp.vagrant.Ref" do end