gleam-lang/gleam

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

Open

#3 622 ouverte le 15 sept. 2024

Voir sur GitHub
 (10 commentaires) (1 réaction) (0 assignés)Rust (960 forks)batch import
help wanted

Métriques du dépôt

Stars
 (21 417 stars)
Métriques de merge PR
 (Merge moyen 10j 19h) (69 PRs mergées en 30 j)

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.

Guide contributeur