gleam-lang/gleam

Stale manifest.toml preventing correct dependency resolution

Open

#3,891 opened on Nov 25, 2024

View on GitHub
 (1 comment) (0 reactions) (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

Version: gleam@1.6.2 (OTP26)

Building upon this issue: https://github.com/gleam-lang/gleam/issues/3890

Clone this version of lustre

git clone https://github.com/lustre-labs/lustre.git
cd lustre
git checkout 969f77de72ca9502aa160e637d2f4fce86f94053
cd test-apps/vdom-test-templates

Now in test-apps/vdom-test-templates/gleam.toml change the gleam_stlidb dependency to ">= 0.43.0 and < 2.0.0" like so:

name = "app"
version = "1.0.0"
target = "javascript"

[dependencies]
gleam_stdlib = ">= 0.43.0 and < 2.0.0"
lustre = { path = "../../" }

Now run the build for that project:

~/Projects/lustre/test-apps/vdom-test-templates → gleam build
  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:

An unrecoverable error happened while solving dependencies: gleam_stdlib is
specified with the requirement `>= 0.43.0 and < 2.0.0`, but it is locked to
0.37.0, which is incompatible.

This error is resolved by just deleting manifest.toml and running build again. The root cause might be the same as https://github.com/gleam-lang/gleam/issues/3890

Contributor guide