Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mix local.rebar --force produces an unmatched checksum #12615

Closed
gilacost opened this issue May 29, 2023 · 10 comments
Closed

mix local.rebar --force produces an unmatched checksum #12615

gilacost opened this issue May 29, 2023 · 10 comments

Comments

@gilacost
Copy link
Contributor

Elixir and Erlang/OTP versions

❯ elixir -v
Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.14.4 (compiled with Erlang/OTP 25)

Operating system

macOS 13.0, BuildVersion: 22A380, ventura

Current behavior

❯ mix local.rebar --force 
** (Mix) Data does not match the given SHA-512 checksum.

Expected: 7a5907453f8f756a004e56af7ec7e835394eb4afbeeaa906d4eac2791f2b0d44b193c317c003f04545354fbe5f79e7b24fe3
c3055c16b9ec5bc5a4c4b4340f08
  Actual: dc559ace623406453c424debbcccb3eca3d40403920f6be0e240f5ec7e8f2836886fd3a3d6355e06d924781143f1275c3506
7e8ad7d1fe0995e35e74dedc6f17


Could not fetch rebar3 at:

    https://repo.hex.pm/installs/1.13.0/rebar3-3.15.2

Please download the file above manually to your current directory and run:

    mix local.rebar rebar3 ./rebar3

Notes: This is affecting any action that uses setup-beam or any docker file that pulls rebar via mix as part of their building process. 😅

Expected behavior

A matching checksum between the downloaded rebar3 and the expected one.

@gilacost gilacost changed the title mix local.rebar --force Can fetch rebar3 mix local.rebar --force Can't fetch rebar3 May 29, 2023
@gilacost gilacost changed the title mix local.rebar --force Can't fetch rebar3 mix local.rebar --force produces an unmatched checksum May 29, 2023
@wojtekmach
Copy link
Member

We're aware of the issue and looking into it, sorry about that.

@perzanko
Copy link

Forum thread -> https://elixirforum.com/t/error-installing-rebar3/56160

@meppu
Copy link

meppu commented May 29, 2023

I also have something similar while trying to build my app in container:

#7 [stage-1 1/4] FROM ghcr.io/gleam-lang/gleam:v0.29.0-elixir@sha256:1cedc5a69cd65072c08c2513c425f749e14a0c1e5e9f969c369f5447892d6b45
------
 > [stage-1 3/4] RUN mix local.rebar --force:
#0 1.751 
#0 1.751 
#0 1.751 Could not fetch rebar3 at:
#0 1.751 
#0 1.751     https://repo.hex.pm/installs/1.13.0/rebar3-3.15.2
#0 1.751 
#0 1.751 Please download the file above manually to your current directory and run:
#0 1.751 
#0 1.751     mix local.rebar rebar3 ./rebar3
#0 1.751 
------
ERROR: failed to solve: executor failed running [/bin/sh -c mix local.rebar --force]: exit code: 1
Error: buildx failed with: ERROR: failed to solve: executor failed running [/bin/sh -c mix local.rebar --force]: exit code: 1

@wojtekmach
Copy link
Member

wojtekmach commented May 29, 2023

The issue should be resolved but please let us know otherwise and in such case, please include your Elixir & OTP version (& rebar3 version, if applies)

@mentero
Copy link

mentero commented May 29, 2023

Works again for us, thank you ❤️

@galassie
Copy link

Works also for me, thanks!

@alexdesousa
Copy link

It's working for me. Thank you! ❤️ 🚀

@renannoliveira
Copy link

Thank you!

@josevalim
Copy link
Member

Glad to hear it is resolved! Thanks @wojtekmach !

@gilacost
Copy link
Contributor Author

Lovely! ❤️‍🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

9 participants