8000 update erlydtl compiler to output to _build, add simple test by tsloughter · Pull Request #241 · erlang/rebar3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Mar 8, 2015

Conversation

tsloughter
Copy link
Collaborator

No description provided.

@@ -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);
Copy link
Collaborator

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!

Copy link
Collaborator Author

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);
Copy link
Collaborator

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

Copy link
Collaborator

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.

ferd added a commit that referenced this pull request Mar 8, 2015
update erlydtl compiler to output to _build, add simple test
@ferd ferd merged commit 5ef7d02 into erlang:master Mar 8, 2015
@tsloughter tsloughter deleted the erlydtl branch August 26, 2015 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0