diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-28 19:50:55 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-29 09:27:55 -0500 |
commit | 2e5496f5f5f3c39bd1e23b4601d1e89d4d2c9767 (patch) | |
tree | a3bf4fb7fbd37291161ee62bfd2b78171f75fdef /bootstrap | |
parent | 212b23b889c0189d3f609d5a16781f6acbadf824 (diff) |
remove use of erlydtl in rebar
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -26,7 +26,7 @@ main(_Args) -> {ok, State} = rebar3:run(["compile"]), reset_env(), os:putenv("REBAR_PROFILE", ""), - %% Build erlydtl files (a hook on compile in the default profile) and escript file + DepsPaths = rebar_state:code_paths(State, all_deps), code:add_pathsa(DepsPaths), @@ -112,16 +112,15 @@ bootstrap_rebar3() -> code:add_patha(filename:absname("_build/default/lib/rebar/ebin")). setup_env() -> - %% We don't need or want erlydtl or relx providers loaded yet + %% We don't need or want relx providers loaded yet application:load(rebar), {ok, Providers} = application:get_env(rebar, providers), - Providers1 = Providers -- [rebar_prv_erlydtl_compiler, - rebar_prv_release, + Providers1 = Providers -- [rebar_prv_release, rebar_prv_tar], application:set_env(rebar, providers, Providers1). reset_env() -> - %% Reset the env so we get all providers and can build erlydtl files + %% Reset the env so we get all providers application:unset_env(rebar, providers), application:unload(rebar), application:load(rebar). |