Skip to content

Support all hex package version requirement formats #2364

@tsloughter

Description

@tsloughter

We currently don't support version requirements like ~> 1.0 or ~> 2.0. The issue being the or. We have no support for or or and. This causes transitive Elixir dependencies to often fail because they can't be resolved.

Handling the constraint once parsed I think should be to just pick the largest. So in the case of ~> 1.0 or ~> 2.0 it will be converted to ~> 2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerbughelp wantedunlikely to be tackled by core maintainersmix/elixiruse case that specifically hits elixir users through mix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions