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

Properly warn on missing rebar3 deps #838

Merged
merged 1 commit into from
Sep 26, 2015
Merged

Conversation

ferd
Copy link
Collaborator

@ferd ferd commented Sep 26, 2015

The current code could not cope with missing dependencies, as they would
prevent the rebar3 app from loading or properly building its config,
which prevented the log state from being carried along with default
values. This in turn would turn in an escript-level error that
obfuscated the true source of failure.

This patch bypasses the whole state setup and logging macros and logs an
error message manually when a dependency such as crypto or SSL is
missing from the Erlang install.

Fixes #836

The current code could not cope with missing dependencies, as they would
prevent the rebar3 app from loading or properly building its config,
which prevented the log state from being carried along with default
values. This in turn would turn in an escript-level error that
obfuscated the true source of failure.

This patch bypasses the whole state setup and logging macros and logs an
error message manually when a dependency such as crypto or SSL is
missing from the Erlang install.
@tsloughter
Copy link
Collaborator

Very nice.

tsloughter added a commit that referenced this pull request Sep 26, 2015
Properly warn on missing rebar3 deps
@tsloughter tsloughter merged commit 7ec6dd7 into master Sep 26, 2015
@ferd ferd deleted the detect-self-deps-missing branch May 6, 2018 21:01
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