Skip to content

Conversation

@ollien
Copy link
Contributor

@ollien ollien commented Nov 14, 2025

The grpc library only requires version 1.15, but this requires 1.18.

==> googleapis
warning: the dependency :googleapis requires Elixir "~> 1.18" but you are running on v1.15.5
Compiling 45 files (.ex)
Generated googleapis app

In order to suppress this warning in the main library, this library should require the same. This unfortunately means pulling in Jiffy on all elixir versions (so that the protobuf library can encode JSON), but that's fine.

defp deps do
[
{:protobuf, "~> 0.12"},
{:jason, "~> 1.4"},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this dependency being added?

Copy link
Contributor Author

@ollien ollien Nov 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mentioned in the description, but protobuf uses either Jason or the built-in JSON. For versions under 1.18, Jason has to be used.

https://github.com/elixir-protobuf/protobuf/blob/781811e08f50de16f02d6e9552a1f484bb34befa/lib/protobuf/json/json_library.ex#L6-L31

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok. I think there's a typo/autocorrect in the description. It all makes sense now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok. I think there's a typo/autocorrect in the description. It all makes sense now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry, I've just been dealing with Jiffy 😅

@polvalente polvalente merged commit b3b3f9d into elixir-grpc:main Nov 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants