gleam-lang/gleam
View on GitHubOffer to attempt again with conflicting deps unlocked when version resolution fails
Open
#3,622 opened on Sep 15, 2024
help wanted
Description
If you add a new dep it can fail due to conflicts with already locked versions of other deps.
I don't know how effective this might be, but I think we could do this:
- When we have a version conflict
- and some of the packages in the conflict chain are locked
- unlock those packages and try again
$ gleam add wibble
Resolving versions
# ... few seconds later, when the first attempt fails
Expanding search range
# ... bit more waiting
Added wibble v2.0.0
Updated wubble v2.0.0 -> v2.2.5
Updated blab v1.0.0 -> v1.5.0
note: Previously this suggested an interactive design, is has been simplified.