Skip to content

Conversation

@knuton
Copy link

@knuton knuton commented Jan 8, 2018

I ran into a problem when adding a dependency to tesk9/accessible-html, v3.1.0:

Solving dependencies...
  ▶ No solution found: Unable to satisfy the following requirements:

- `tesk9/accessible-html (< 4.0.0)` required by `user-specified dependency`
- `tesk9/accessible-html (>= 3.1.0)` required by `user-specified dependency`

The code to determine the Elm version of a package assumes that the version constraint is always of the shape a.b.c <= v < x.y.z, but accessible-html specifies the Elm version in different way: https://github.com/tesk9/accessible-html/blob/3.1.0/elm-package.json#L23

This is a hot fix that extends the existing hack.

Ideas for a proper solution

The nice solution would be to resolve the Elm version constraints of the packages for compatibility. As far as I can see the Solve library does not offer that option.

How about adding the required Elm versions to the constraint set and adding an auto-detected (but configurable) Elm version to the graph?

@knuton knuton force-pushed the fix-lte-elm-versions branch from d044926 to bd5dc71 Compare January 8, 2018 18:13
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.

1 participant