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
Explicitly allow custom keys in the .app file #1793
Conversation
|
@tsloughter Could you please explain the use of the |
@sirihansen the idea was that these are specific to the application and not the build tool. It was a way to not have it be tied to rebar3 (allowing for it to be used by other programs that would publish to hex). I did want to move it to rebar.config if
the issue would be moot. |
If we were to add one named key, under which you are allowed to insert custom sub-keys, would that solve the problem? If so, we would possibly want to add something like 'application:get_custom_key/2' for convenience also. |
Sure. Though since modules already have 'author' it wouldn't be that out of place to have something similar for the application as a whole, right? But I'm fine with a custom keys entry as well. |
I'm really sorry for the delay on this. We do not want an explicit 'author' key, but if you want to add a key named 'custom', which points to a key-value list we will accept the PR. Please remember to add test and documentation. |
Perfect, I think this PR can be closed then. Just not to be in a deadlock... @tsloughter would you work on that patch to closely coordinate with |
This is really a question in the shape of a patch :).
The documentation in http://erlang.org/doc/man/app.html suggests to me that the property list is the one specified there, with those specified keys. But I have seen that some applications include custom keys, see for example hackney.app.src, or poolboy.app.src, which contain keys
maintainers
,licenses
, andlinks
.Those particular keys are there because they are processed by rebar3_hex.
The question for someone generating application resource files is: is that technically valid and thus the proposed patch says something true? or it isn't, the patch is not good, and
rebar3_hex
should revise that contract and move that metadata somewhere else?