Skip to content

Can't compile dependency from Elixir #28

Closed

Description

@fkrause98

Hi!
I've created a new project with mix new and tried to use cuttlefish as a dependency, this is my mix.exs file:

defmodule Riax.MixProject do
  use Mix.Project
  def project do
    [
      app: :riax,
      version: "0.1.0",
      elixir: "~> 1.13",
      start_permanent: Mix.env() == :prod,
      deps: deps()
    ]
  end

  def application do
    [
      extra_applications: [:logger]
    ]
  end

  defp deps do
    [
      {:cuttlefish, "~> 3.0", manager: :rebar3, override: true},
      {:riak_core,
       git: "https://github.com/basho/riak_core", ref: "f15acd3a87150431277eb754792ec24a0dc81d75", manager: :rebar3},
      {:hut, "~> 1.3", manager: :rebar3, override: true}
    ]
  end
end

But when I try to compile cuttlefish with mix compile cuttlefish I get the following error:

$  mix deps.compile cuttlefish
===> Analyzing applications...
===> Compiling cuttlefish
===> Building escript for 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.4-otp-25/.mix/rebar3 bare compile --paths /Users/fran/Programming/Elixir/elixir_riak_core/riax/_build/dev/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"

I'm using this versions of Erlang and Elixir:

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

Elixir 1.13.4 (compiled with Erlang/OTP 25)

Activity

  1. locked and limited conversation to collaborators on Jun 7, 2022
  2. converted this issue into a discussion #29 on Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions