#Error when adding `pog` using `gleam add pog`

1 messages · Page 1 of 1 (latest)

jovial verge
#

Hi all, any idea what could be the origin of the following error:
➜ gleam add pog
Resolving versions
error: Corrupt manifest.toml
I'm running gleam v1.7.0
I can add other packages such as gjwt
but when adding pog I always get this error
The solution build and run normally without any error.

untold sleet
#

seems to work fine?!

❯ gleam --version
gleam 1.7.0
❯ gleam add pog
  Resolving versions
Downloading packages
 Downloaded 5 packages in 4.21s
      Added pog v3.1.1
jovial verge
#

? I have no idea what I'm doing wrong 😦

untold sleet
#

try clear ~/.cache/gleam/hex/hexpm/packages/ ?

uncut garden
#

Is your project a “subproject” of another one? I was getting that too in some sub projects

jovial verge
untold sleet
#
❯ sha256sum ~/.cache/gleam/hex/hexpm/packages/pog-3.1.1.tar 
0c516688f2ca531d70487e2f1da18a9b0ca05bd8a16a33026d19ce2368885179  /home/damjan/.cache/gleam/hex/hexpm/packages/pog-3.1.1.tar
#

hrm

tidal wind
tidal wind
untold sleet
#

on the off chance the cache got corupted

tidal wind
#

Shouldn’t be possible as we verify checksums. Did you find something?

jovial verge
tidal wind
#

It’s a bug in Gleam I think

jovial verge
#

Cause I created a fresh empty project and could add it without any problem

tidal wind
#

Yee Gleam is handling your config files incorrectly in some way

uncut garden
#

would you (@ Alex) mind linking the issue here if you make one? I was getting the same thing but I haven't had a chance to look into it...I also only got it with subprojects and multiple git worktrees checked out, so I had thought it might be because of that

jovial verge
tidal wind
#

Thank you

jovial verge
untold sleet
#

can reproduce.

seems to be conflicting with gjwt for some reason. if you remove gjwt you can then add pog

jovial verge
#

Indeed If I install first pog and squirrel and then gjwt then it works.