-
Notifications
You must be signed in to change notification settings - Fork 521
update erlydtl compiler to output to _build, add simple test #241
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
Conversation
@@ -84,7 +84,7 @@ process_command(State, Command) -> | |||
%% to have both $REBAR_PROFILE set and use 'as' in a command | |||
case rebar_state:current_profiles(State) of | |||
[default] -> | |||
do([{default, hd(TargetProviders)} | tl(TargetProviders)], State); | |||
do([hd(TargetProviders) | tl(TargetProviders)], State); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're gonna do that, just use TargetProviders
. I thought this was needed for as
to be fetched as a command in the undefined
namespace though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, woops, yea. But na, it isn't needed, at least not with the v1.3.0 version of providers.
@@ -84,7 +84,7 @@ process_command(State, Command) -> | |||
%% to have both $REBAR_PROFILE set and use 'as' in a command | |||
case rebar_state:current_profiles(State) of | |||
[default] -> | |||
do([{default, hd(TargetProviders)} | tl(TargetProviders)], State); | |||
do(TargetProviders, State); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is still needed. See without it:
→ DEBUG=1 ./rebar3 as test do help
===> Consult config file "rebar.config"
===> Consult config file "rebar.lock"
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace
===> Uncaught error: {'EXIT',
{{badrecord,provider},
[{providers,do,2,
[{file,"src/providers.erl"},{line,86}]},
{rebar_core,do,2,
[{file,"src/rebar_core.erl"},
{line,129}]},
{rebar3,main,1,
[{file,"src/rebar3.erl"},{line,46}]},
{escript,run,2,
[{file,"escript.erl"},{line,752}]},
{escript,start,1,
[{file,"escript.erl"},{line,276}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]}}
Probably needs a test case for that too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, had forgotten to refetch providers.
update erlydtl compiler to output to _build, add simple test
No description provided.