Skip to content
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

Add lib/elixirpb to package files #368

Merged
merged 1 commit into from
May 11, 2024
Merged

Conversation

sekiyama58
Copy link
Contributor

@sekiyama58 sekiyama58 commented Feb 6, 2024

This fixes the issue that option (elixirpb.file).module_prefix is not loaded correctly if the protobuf package is installed from Hex, due to missing lib/elixirpb/pb_extension.pb.ex in the 0.11.0 or 0.12.0 packages.

Closes #367

mix.exs Outdated
@@ -76,6 +76,7 @@ defmodule Protobuf.Mixfile do
files: ~w(
mix.exs
README.md
lib/elixirpb
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can remove the :files config all together. It already seems to include what hex includes by default https://github.com/hexpm/hex/blob/main/lib/hex/package.ex#L4.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ericmj Thanks, that sounds reasonable. I've updated my patch to remove the :files config entirely.

@sekiyama58
Copy link
Contributor Author

Hope this gets fixed and released soon ..

@whatyouhide whatyouhide merged commit 51f12a0 into elixir-protobuf:main May 11, 2024
8 checks passed
@whatyouhide
Copy link
Collaborator

Thanks @sekiyama58 💟

sekiyama58 added a commit to aktsk/protoc-gen-validate that referenced this pull request Jun 4, 2024
The issue is fixed by elixir-protobuf/protobuf#368.
Until this is released as a new version, use the trunk.
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.

lib/elixirpb/pb_extension.pb.ex is missing in the package
3 participants