lustre-labs / dev-tools

Lustre's CLI and development tooling: zero-config dev server, bundling, and scaffolding.
45 stars 15 forks source link

Dependency resolution failed #27

Closed ndan closed 4 months ago

ndan commented 4 months ago

I'm encountering dependency resolution issue when adding lustre_dev_tools to a new app.

gleam 1.1.0

Steps to reproduce:

  1. gleam new app && cd app && gleam add lustre
  2. target = "javascript"
  3. gleam add --dev lustre_dev_tools
  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:

Because lustre_dev_tools [ 0.0.0, 1.0.1 [  [ 1.0.2, 1.1.0 [  [ 1.1.6, 1.2.0
[  [ 1.2.3, ∞ [ depends on glint 0.18.0 <= v < 1.0.0 and lustre_dev_tools
1.0.1 depends on glint 0.18.0 <= v < 1.0.0, lustre_dev_tools [ 0.0.0, 1.1.0
[  [ 1.1.6, 1.2.0 [  [ 1.2.3, ∞ [ depends on glint 0.18.0 <= v < 1.0.0.
And because lustre_dev_tools 1.1.0 depends on glint 0.18.0 <= v <
1.0.0 and lustre_dev_tools 1.1.1 depends on glint 0.18.0 <= v < 1.0.0,
lustre_dev_tools [ 0.0.0, 1.1.2 [  [ 1.1.6, 1.2.0 [  [ 1.2.3, ∞ [ depends
on glint 0.18.0 <= v < 1.0.0.
And because lustre_dev_tools 1.1.2 depends on glint 0.18.0 <= v <
1.0.0 and lustre_dev_tools 1.1.3 depends on glint 0.18.0 <= v < 1.0.0,
lustre_dev_tools [ 0.0.0, 1.1.4 [  [ 1.1.6, 1.2.0 [  [ 1.2.3, ∞ [ depends
on glint 0.18.0 <= v < 1.0.0.
And because lustre_dev_tools 1.1.4 depends on glint 0.18.0 <= v <
1.0.0 and lustre_dev_tools 1.1.5 depends on glint 0.18.0 <= v < 1.0.0,
lustre_dev_tools [ 0.0.0, 1.2.0 [  [ 1.2.3, ∞ [ depends on glint 0.18.0 <=
v < 1.0.0.
And because lustre_dev_tools 1.2.0 depends on glint 0.18.0 <= v <
1.0.0 and lustre_dev_tools 1.2.1 depends on glint 0.18.0 <= v < 1.0.0,
lustre_dev_tools [ 0.0.0, 1.2.2 [  [ 1.2.3, ∞ [ depends on glint 0.18.0 <=
v < 1.0.0.
And because glint 0.18.0 depends on gleam_stdlib [ 0.36.0, 0.37.0
[  [ 1.0.0, 2.0.0 [ and glint 0.18.1 <= v < 1.0.1 depends on gleam_stdlib
[ 0.36.0, 0.37.0 [  [ 1.0.0, 2.0.0 [, lustre_dev_tools [ 0.0.0, 1.2.2
[  [ 1.2.3, ∞ [ depends on gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0, 2.0.0
[. (1)

Because glint 0.18.0 depends on gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0,
2.0.0 [ and glint 0.18.1 <= v < 1.0.1 depends on gleam_stdlib [ 0.36.0,
0.37.0 [  [ 1.0.0, 2.0.0 [, glint 0.18.0 <= v < 1.0.1 depends on
gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0, 2.0.0 [.
And because lustre_dev_tools 1.2.2 depends on glint 0.18.0 <= v < 1.0.0,
lustre_dev_tools 1.2.2 depends on gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0,
2.0.0 [.
And because lustre_dev_tools [ 0.0.0, 1.2.2 [  [ 1.2.3, ∞ [ depends on
gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0, 2.0.0 [ (1), lustre_dev_tools
depends on gleam_stdlib [ 0.36.0, 0.37.0 [  [ 1.0.0, 2.0.0 [.
And because app 0.0.0 depends on lustre_dev_tools and app 0.0.0 depends on
gleam_stdlib 0.37.0, app 0.0.0 is forbidden.
ndan commented 4 months ago

lustre_dev_tools requires glint, which needs gleam_stdlib version 0.36.0. A new app uses version 0.37.0, causing a conflict.

Solutions:

  1. Downgrade to gleam_stdlib version 0.36.0
  2. Delete manifest.toml

An update to glint is expected soon, which should resolve this issue. I'll close the issue now, but please feel free to reopen it if the problem persists.