-
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
overlay_vars in a profile is not used #1247
Comments
So as I read the code the merge in relx for a profile is done here: and then you merge the relx config:
When I read the code in rebar_utils I see that the first arg is
https://github.com/erlang/rebar3/blob/master/src/rebar_utils.erl#L285-L286 So the code in |
+1 |
+1 |
This may have been fixed in #1606 |
This patch reorders overlay values such that the overlay of a profile takes place *after* the basic overlay, ensuring that the profile actions take place after the basic ones; this allows profiles to properly overwrite files as expected (see erlang#1609) This is done while adequately maintaining the order of operations that were required as part of erlang#1563 Overlay vars of profiles are also checked to be taking the same profile order, along with a test. This fixes erlang#1247 and erlang#1609
Specifically, this impacts profiles. It appears that relx as a whole requires its configuration to be merged in one tuple order (New takes precedence over Old), whereas the overlays require the opposite (Old takes precedence over New) since the operation order on disk is important to work well. This patch reorders overlay values such that the overlay of a profile takes place *after* the basic overlay, ensuring that the profile actions take place after the basic ones; this allows profiles to properly overwrite files as expected (see erlang#1609) This is done while adequately maintaining the order of operations that were required as part of erlang#1563 Overlay vars of profiles are also checked to be working fine, along with a test. This fixes erlang#1247 and erlang#1609
I have a default overl_vars file setup and want to use a different one for prod. But the default on e is always used. Could we replace the hex overlay_vars in profile?
have the following config (edited):
and run
rebar3 as prod release
.The text was updated successfully, but these errors were encountered: