Skip to content

Find version via hex_metadata.config instead of .hex#14

Open
kristoff3r wants to merge 1 commit intosaleyn:mainfrom
kristoff3r:main
Open

Find version via hex_metadata.config instead of .hex#14
kristoff3r wants to merge 1 commit intosaleyn:mainfrom
kristoff3r:main

Conversation

@kristoff3r
Copy link
Copy Markdown

The .hex file seem to be an outdated format, and it isn't present when building with Nix. You can easily get the same info using the hex_metadata.config file instead, which is described in the standard here: https://github.com/hexpm/specifications/blob/main/package_metadata.md.

I tested it locally by editing the mix.exs file in my deps folder and printing the version.

I'll just add that I think reading files and invoking git from a mix.exs as a library is bad practice, and I'd be happy to remove all of this logic as well if you want.

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.

1 participant