Skip to content

Failed to compile 1.16 #632

@ilkka

Description

@ilkka

I just came back to one repo after a few weeks of not doing anything, and I noticed that I couldn't compile it any more. This is what I was seeing doing mix deps.compile with DEBUG=1:

===> Package idna-6.0.1 not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Fetching registry from "https://repo.hex.pm:443/registry.ets.gz?"
===> Writing registry to c:/Users/Ilkka/.cache/rebar3/hex/default/registry
===> Generating package index...
===> [appsignal:1.6.2], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [appsignal:1.6.6-beta.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
[...]
===> [appsignal:1.6.4], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> [batch_loader:0.1.0-beta.3], Bad dependency version for absinthe: ~> 1.4.0 or ~> 1.5.0-beta.
===> [appsignal:1.6.0-alpha.1], Bad dependency version for httpoison: ~> 0.11 or ~> 1.0.
===> Writing index to c:/Users/Ilkka/.cache/rebar3/hex/default/packages.idx
===> Package not found in registry: {<<"idna">>,<<"6.0.1">>}.
==> live_view_studio
** (Mix) Could not compile dependency :hackney, "escript.exe "c:/Users/Ilkka/.mix/rebar3" bare compile --paths="c:/Users/Ilkka/Code/my-project/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile hackney", update it with "mix deps.update hackney" or clean it with "mix deps.clean hackney"

I'm getting hackney as a dependency of timex, which depends on ~> 1.0. I added my own dependency to {:hackney, "== 1.15.2"} and that completely fixed the issue for me

I'm on Win 10 and elixir --version output is

Erlang/OTP 23 [erts-11.0] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Elixir 1.10.3 (compiled with Erlang/OTP 21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions