gleam-lang/gleam

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

Open

#3.622 aberto em 15 de set. de 2024

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

Métricas do repositório

Stars
 (21.417 stars)
Métricas de merge de PR
 (Mesclagem média 10d 19h) (69 fundiu PRs em 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.

Guia do colaborador