-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove submodule protobuf #26
remove submodule protobuf #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few minor comments
@@ -1,54 +0,0 @@ | |||
defmodule Google.Protobuf.Any do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these files removed, you can remove the line ~r/^Google\./,
from the ignore_modules
section of the root mix.exs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed.
@@ -42,7 +42,8 @@ defmodule GrpcReflection.MixProject do | |||
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}, | |||
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, | |||
{:grpc, "~> 0.7"}, | |||
{:protobuf, "~> 0.11"} | |||
{:protobuf, "~> 0.11"}, | |||
{:google_protos, "~> 0.4.0"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
google_protos
is only used in the unit tests and can be marked only: :test
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
google_protos
is used for unit tests and example/helloworld
. According to your suggestion, I will mark it only: :test
and add the dependence to mix.exs
in exmaple/helloworld
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added {:google_protos, "~> 0.4.0", only: :test}
to grpc-reflection/mix.exs
, then added {:google_protos, "~> 0.4.0"}
to example/helloworld/mix.exs
even with override: true
, example/helloworld
failed to run and threw following error.
11:57:00.494 [error] ** (CaseClauseError) no case clause matching: {:error, {:undef, [{Google.Protobuf.Timestamp, :descriptor, [], []},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that too, this is really unfortunate. Our use of the :google_protos
package for testing is going to force all consuming libraries to also install and load the google protos modules whether they want to or not.
Co-authored-by: Michael Heilmann <[email protected]>
This PR removes the
protobuf
submodule and replaces it with the new dependencygoogle_protos
, asgoogle_protos
has been updated tov0.4.0
to support grpc_reflection.