Grizzlih

Grizzlih

Asdf install elixir 1.18.3 downloads zero-byte file (zip not found)

Hi all,

I’m trying to install Elixir 1.18.3 with asdf on macOS Catalina (10.15.7), but the installation fails because the downloaded archive is empty. Here’s the full output:

sudo asdf install elixir 1.18.3
==> Checking whether specified Elixir release exists...
==> Downloading 1.18.3 to /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
==> Copying release into place
[/Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip or
        /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip.zip, and cannot find /Users/x/.asdf/downloads/elixir/1.18.3/elixir-precompiled-1.18.3.zip.ZIP, period.

It looks like asdf is downloading a zero-byte file instead of the actual precompiled release.

What I’ve tried so far:

  • Updated asdf itself (git -C ~/.asdf pull) and the Elixir plugin (asdf plugin-update elixir)

  • Removed stale downloads in ~/.asdf/downloads/elixir/1.18.3/

  • Retried with ASDF_DEBUG=1 (still shows a zero-byte download)

  • Installing different Elixir versions (e.g. 1.18.4, 1.18.3, and earlier) — all give the same result

Questions:

  • Is this a known issue with the precompiled Elixir 1.18.3/1.18.4 releases on GitHub?

  • Or could it be something wrong with my local setup (curl, TLS, certificates)?

Thanks in advance for any advice!

Most Liked

aseigo

aseigo

In case you don’t figure it out with asdf, I can recommend mise. After the asdf rewrite, I decided to take stock as to what the options are and gave mise a try … and haven’t looked back, having found misemore ergonomic and reliable. It serves the same use cases as asdf, and so has been a drop-in replacement for my use of asdf.

dimitarvp

dimitarvp

Well finally I can breathe a sigh of relief. I am not the only person on ElixirForum who knows about mise, after a year or two shilling for it here. :smiley:

No shims, for one thing. To me that’s already a huge benefit by itself. But it can also work as a task runner, and it has even a few more functions on top of that + the version manager thing.

xir

xir

That’s what I was going to mention too – mise. It’s simpler to use, it works both with shims and without them. I use it without them. All its benefits are listed on their website, but to me, it’s just simpler than asdf.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call t...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement