gleam icon indicating copy to clipboard operation
gleam copied to clipboard

gleam add with multiple dependencies

Open BrentGruber opened this issue 8 months ago • 4 comments

When running the gleam add command with multiple dependencies it seems that there is a dependency tracking issue where the dependent packages do not get tracked accordingly, causing an issue when trying to run the project.

example command:

gleam add wisp lustre mist gleam_http gleam_erlang dot_env gleam_json

The above command causes the project to fail when installing dependencies. thanks to some help from @mark on the gleam discord server this was narrowed down to the wisp and dot_env packages and further down to the shared simplifile dependency.

When running the command above it install wisp version 0.1.0, which results in an error stating that wisp does not have the required dependencies

The module `wisp` does not have a `Request` type.

This is because when using multiple packages in the gleam add command (including wisp and dot_env) it ends up installing a much older version of wisp (0.1.0 instead of 0.14.0).

BrentGruber avatar Jun 09 '24 05:06 BrentGruber