-
Notifications
You must be signed in to change notification settings - Fork 521
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
Support rebar3 profile
overlay var in relx library
#1254
Comments
Is this somewhere on the roadmap? |
Not to any degree bigger than any of the other issues here or in the relx repo. There's more work than there's time for all the maintainers involved. If you're interested in adding support, let us know and we can see how we could provide guidance. |
I investigated a bit; I had long forgotten that more than one profile can be in use. What do you think would be good semantics for such cases? For the build directory ( But it would be strange to call it Alternatively, the new overlay var could be called something along the lines of For now I won't proceed any further as I'm not sure what's the best solution here. |
The relative order of profiles does matter in the general case. Merging a+b+c may give a different resulting configuration than c+b+a, specifically in the case where the same values exist in multiple profiles and the later profile dominates. The It makes sense to have the values fit what we do for paths, in which case |
Perfect! I'll give a go at a PR with the changes. |
PR opened in relx in order to make this possible. |
PR opened. |
I suppose this issue can now be closed :) |
Relx defines a bunch of builtin overlay vars that are pretty useful (most notably
{{release_version}}
), it would be pretty cool if it could know about rebar3 metadata as well, for example what profile is being built, sometimes there’s the need to copy build artifacts to the release so a{{profile}}
builtin overlay var would be really helpfulThe text was updated successfully, but these errors were encountered: