Skip to content
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

reset hooks under profiles for application opts #1564

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

tsloughter
Copy link
Collaborator

No description provided.

not lists:member(Key, [post_hooks,
pre_hooks,
provider_hooks,
artifacts])]};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd extract that list of magic keys to escape here and on line 188 to some shared variable or macro so they always end up matching.

@@ -98,6 +100,17 @@ run_hooks_once(Config) ->
rebar_test_utils:create_app(AppDir, Name, Vsn, [kernel, stdlib]),
rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], {ok, [{app, Name, valid}]}).

%% test that even if a hook is defined in a used profile it is not run twice
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The discussion on IRC mentioned things that looked like umbrella apps, but here it doesn't seem to matter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test does create an umbrella app, just like the one above it, just with the extra piece that it uses a profile. I can add that fact to the comment.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make it clearer :)

@tsloughter tsloughter force-pushed the reset_profile_hooks branch 2 times, most recently from f724cf1 to 18628fd Compare June 2, 2017 20:07
@tsloughter tsloughter force-pushed the reset_profile_hooks branch from 18628fd to 48dc973 Compare June 2, 2017 21:00
@tsloughter tsloughter merged commit 8750a67 into erlang:master Jun 2, 2017
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