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

only apply default and prod profile to dependencies #1006

Merged
merged 1 commit into from
Jan 9, 2016

Conversation

tsloughter
Copy link
Collaborator

Fix for #998

When implementing this I discovered we actually were applying profiles to dependencies! This removes that mistake and only applies the prod profile to dependencies.

The reason we didn't notice is this only happened in handle_dep which would not be called for a dep when say rebar3 eunit is run because the dep was already fetched to default, so the test profile wouldn't be wrongly applied to it, it would only happen for test deps, which is still wrong and now won't happen.

@ferd
Copy link
Collaborator

ferd commented Jan 9, 2016

Merging. Remind me to write a test checking that other profiles aren't accidentally run.

ferd added a commit that referenced this pull request Jan 9, 2016
only apply default and prod profile to dependencies
@ferd ferd merged commit a479c2f into erlang:master Jan 9, 2016
@ferd
Copy link
Collaborator

ferd commented Jan 9, 2016

Ah forgot to ask -- does this display warnings on deps without prod profiles?

@tsloughter
Copy link
Collaborator Author

Isn't that warning only if you use as <profile> and that profile doesn't exist?

@ferd
Copy link
Collaborator

ferd commented Jan 9, 2016

That's possible, I forgot where we put that. That would make sense though.

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