Can't compile Erlang dependency

Hi!
I’m using an erlang dependency which fails with this message:

$ mix deps.compile cuttlefish
===> Unable to run post hooks for 'compile', command '{bad_app,getopt}' in namespace 'rebar_prv_escriptize' not found.

** (Mix) Could not compile dependency :cuttlefish, "/Users/fran/.asdf/installs/elixir/1.13.0-otp-25/.mix/rebar3
 bare compile --paths /Users/fran/Programming/Elixir/elixir_riak_core/_build/test/lib/*/ebin" command failed.
 Errors may have been logged above. You can recompile this dependency with "mix deps.compile cuttlefish", 
update it with "mix deps.update cuttlefish" or clean it with "mix deps.clean cuttlefish"

This is what I have in my mix.exs:

 defp deps do
    [
      {:cuttlefish,
       git: "https://github.com/kyorai/cuttlefish.git", manager: :rebar3, tag: "v3.0.1"},
    ]
  end

I’ve forked the repo and commented this line:
{provider_hooks, [{post, [{compile, {default, escriptize}}]}]}. in said dependency’s rebar.config and it works just fine, is there another way to fix this, without using a fork?
I’m using Elixir 1.13.0 + OTP 25.
Thanks!

There is a closed issue on the cuttlefish GitHub repo:

The issue was moved to a discussion (link at the top & bottom) which might help.

That issue is actually mine, they moved the issue to a discussion but I haven’t seen any relevant answers for now.

1 Like

What version of rebar3 do you have in your $MIX_HOME?

If you remove it and then do mix local.rebar --force, does it work then?