#dep module with git fail to compile when imported but compile fine in its repository

1 messages · Page 1 of 1 (latest)

latent furnace
#

Hey trying to use a bumped stdlib version of startest from here : https://github.com/dvic/startest/tree/bump-deps (this compiles fine with warnings)
But if I add it as a deps it to my gleam project if fails to compile, I don't understand why or how to debug this.

Initial repo/branch with the warning when building

warning: Deprecated value used
   ┌─ /Users/sgregory/Projects/dvic_startest/src/startest/test_failure.gleam:65:29
   │
65 │         |> dict.get(dynamic.from(Module))
   │                             ^^^^ This value has been deprecated


   Compiled in 0.08s

When compiling the deps of my project

error: Unknown module value
   ┌─ /Users/sgregory/Projects/sandbox/claude-cli-hook/build/packages/startest/src/startest/test_failure.gleam:65:29
   │
65 │         |> dict.get(dynamic.from(Module))
   │                             ^^^^

The module `gleam/dynamic` does not have a `from` value.

my gleam.toml

[dependencies]
gleam_stdlib = ">= 0.60.0 and < 2.0.0"

[dev-dependencies]
startest = { git = "[email protected]:dvic/startest.git", ref = "bump-deps" }
true sigil
#

have you run gleam clean?

latent furnace
#

yep

wicked zephyr
#

what does your manifest look like

#

manifest.toml

jagged sentinel
#

this is an issue with that startest branch

true sigil
#

naomi beat me to the link

jagged sentinel
#

hehe

wicked zephyr
#

0.60.0 of the stdlib deprecated it, 0.61.0 removed it

#

if your manifest has 0.61.0 then that is why

true sigil
#

bingo

wicked zephyr
#

you'd have to either update upstream to remove the deprecated usage, or pin your stdlib to 0.60.0 (until upstream is resolved)

latent furnace
#

yep the manifest has 0.61 nice catch !

true sigil
#

(pretends i was helpful) teamwork makes the dream work!

latent furnace
#

Thanks a lot, I should ping sooner, been on this for couple hours now... I thought i messed up something.

#

are there any ETA on a stable stdlib ? 🙄