gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
17.25k stars 715 forks source link

Failure opening tar archive #2994

Closed aiwaki closed 4 months ago

aiwaki commented 4 months ago

Steps and code to reproduce the problem

I just want to add packages:

PS D:\Projects\gleam\my_project> gleam add wisp 
  Resolving versions
Downloading packages
error: Failure opening tar archive

There was a problem when attempting to expand a to a tar archive.    

This was error from the tar library:

    Unable to locate Hex package contents.tar.gz

and

PS D:\Projects\gleam\my_project> gleam add lustre
  Resolving versions
Downloading packages
error: Failure opening tar archive

There was a problem when attempting to expand a to a tar archive.

This was error from the tar library:

    Unable to locate Hex package contents.tar.gz

It looks like this error only occurs for these packages


Versions for Gleam, OS, the runtime and any other software used

gleam 1.0.0

Edition Windows 11 Pro
Version 23H2
Installed on    ‎8/‎17/‎2023
OS build    22631.3374
Experience  Windows Feature Experience Pack 1000.22688.1000.0

Logs from running Gleam with the GLEAM_LOG environment variable set to trace

How to do it? I tried just adding it manually, but nothing has changed

lpil commented 4 months ago

Do other packages succeed?

How to do it? I tried just adding it manually, but nothing has changed

This will be specific to whatever shell you are using. If you're using a POSIX-compatible shell you can run export GLEAM_LOG=trace.

aiwaki commented 4 months ago

Okay, here it is!

lpil commented 4 months ago

Could you delete C:\\Users\\makse\\AppData\\Local\\gleam\\hex\\hexpm\\packages for me and try again please.

aiwaki commented 4 months ago

Now everything is all right. I've reinstalled Gleam before, but it looks like that folder didn't go away with it. But it's still strange. Anyway, thanks!