mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Document rebar_config TODOs
This commit is contained in:
parent
db78956295
commit
4fe3306d99
2 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
-record(config, { dir :: file:filename(),
|
-record(config, { dir :: file:filename(),
|
||||||
opts = [] :: list(),
|
opts = [] :: list(),
|
||||||
|
%% TODO: consider storing envs in xconf
|
||||||
envs = new_env() :: dict(),
|
envs = new_env() :: dict(),
|
||||||
%% cross-directory config
|
%% cross-directory config
|
||||||
skip_dirs = new_skip_dirs() :: dict(),
|
skip_dirs = new_skip_dirs() :: dict(),
|
||||||
|
@ -170,6 +171,7 @@ erase_xconf(Config, Key) ->
|
||||||
reset_xconf(Config) ->
|
reset_xconf(Config) ->
|
||||||
Config#config{xconf = new_xconf()}.
|
Config#config{xconf = new_xconf()}.
|
||||||
|
|
||||||
|
%% TODO: reconsider after config inheritance removal/redesign
|
||||||
clean_config(Old, New) ->
|
clean_config(Old, New) ->
|
||||||
New#config{opts=Old#config.opts}.
|
New#config{opts=Old#config.opts}.
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ process_commands([Command | Rest], ParentConfig) ->
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
ok
|
||||||
end,
|
end,
|
||||||
|
%% TODO: reconsider after config inheritance removal/redesign
|
||||||
ParentConfig3 = rebar_config:clean_config(ParentConfig1, ParentConfig2),
|
ParentConfig3 = rebar_config:clean_config(ParentConfig1, ParentConfig2),
|
||||||
%% Wipe out vsn cache to avoid invalid hits when
|
%% Wipe out vsn cache to avoid invalid hits when
|
||||||
%% dependencies are updated
|
%% dependencies are updated
|
||||||
|
|
Loading…
Reference in a new issue