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

Handling optional dependencies #14

Open
joaohf opened this issue Jan 2, 2020 · 0 comments
Open

Handling optional dependencies #14

joaohf opened this issue Jan 2, 2020 · 0 comments

Comments

@joaohf
Copy link

joaohf commented Jan 2, 2020

Hi,

Does rebar_mix support optional packages?

Example: this package telemetry_metrics_riemann (https://hex.pm/packages/telemetry_metrics_riemann/0.2.0) has an optional package (https://hexdocs.pm/mix/Mix.Tasks.Deps.html#module-dependency-definition-options). According to https://github.com/hexpm/specifications/blob/master/dependency_resolution.md#dependency-resolution:

A package can define optional dependencies, an optional dependency should only resolve if the top-level project also depends on it.

Even though my toplevel project (https://github.com/joaohf/eclero/blob/metrics/rebar.config#L12) does not declare the 'riemanxx' package, rebar_mix is fetching that dependency (https://github.com/joaohf/eclero/blob/metrics/rebar.lock#L18).

Is possible to handle that using rebar_mix if yes, how we could add this feature to rebar_mix ?

Thanks

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

No branches or pull requests

1 participant