Closed lukaszsamson closed 1 year ago
Can you try with the main branch? mix archive.install github hexpm/hex branch main
It's possible it's been fixed in https://github.com/hexpm/hex/commit/15f9e6605295b61ce8ffe8e64501afc09afac622.
@ericmj I couldn't reproduce it on master but I don't know hex internals well enough to tell if this PR fixed it. The crash was in Hex.UpdateChecker.check()
call before Registry.close()
. The issue is most likely a race conditions so I might have been unlucky.
Closing because it can't be reproduced.
Just FYI we just got the same crash in our CI: https://github.com/erlang/otp/actions/runs/9314132088/job/25637893845.
This is using hex 2.1.1 and seems like a race somewhere as so far we've only seen it once out of 100s of runs.
Versions
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit] Elixir 1.14.5 (compiled with Erlang/OTP 25) hex 2.0.6
Report
on the second try it works
I can reproduce it every few tries when I remove
Mix.Utils.mix_cache()
directory