Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stale manifest.toml preventing correct dependency resolution #3891

Open
JonasGruenwald opened this issue Nov 25, 2024 · 1 comment
Open

Stale manifest.toml preventing correct dependency resolution #3891

JonasGruenwald opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium

Comments

@JonasGruenwald
Copy link

JonasGruenwald commented Nov 25, 2024

Version: gleam@1.6.2 (OTP26)

Building upon this issue: #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 #3890

@JonasGruenwald JonasGruenwald added the bug Something isn't working label Nov 25, 2024
@lpil lpil added help wanted Contributions encouraged priority:medium labels Nov 25, 2024
@lpil
Copy link
Member

lpil commented Nov 25, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

2 participants