gleam-lang/gleam

Offer to attempt again with conflicting deps unlocked when version resolution fails

Open

#3,622 opened on Sep 15, 2024

View on GitHub
 (10 comments) (1 reaction) (0 assignees)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

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.

Contributor guide