gleam-lang/gleam

Permit resolving retired package versions, but prefer non-retired and emit warning

Open

#3,854 opened on Nov 19, 2024

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wantedhigh priority

Description

To reproduce:

Add a retired package to your gleam.toml, for example:

gleam_pgo = "0.14.0"

And then try to build (or check) your package:

gleam check

Expected:

My package to build/check successfully.

Experienced:

Failure of dependency resolution.

gleam check
  Resolving versions
error: Dependency resolution failed

An error occurred while determining what dependency packages and
versions should be downloaded.
The error from the version resolver library was:

Unable to find compatible versions for the version constraints in your
gleam.toml. The conflicting packages are:

- py_package
- gleam_pgo

Environment:

Gleam 1.6.1 (installed from GitHub releases page) Debian 12 under WSL2

An error occurred while determining what dependency packages and versions should be downloaded. The error from the version resolver library was:

Unable to find compatible versions for the version constraints in your gleam.toml. The conflicting packages are:

  • aloy
  • gleam_pgo

Contributor guide