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

Unable to run pre hooks for 'compile', command 'erl_vsn' not found. in 3.1.0 #60

Closed
johnhamelink opened this issue May 21, 2018 · 9 comments
Assignees

Comments

@johnhamelink
Copy link

Hi guys,

I'm trying to upgrade from 3.0 to 3.1, but I'm getting the following error on both my dev machine and in CI:

===> Fetching rebar_erl_vsn ({pkg,<<"rebar_erl_vsn">>,<<"0.1.7">>})
===> Downloaded package, caching at /home/john/.cache/rebar3/hex/default/packages/rebar_erl_vsn-0.1.7.tar
===> Compiling rebar_erl_vsn
===> Compiling elli
===> Unable to run pre hooks for 'compile', command 'erl_vsn' not found.
** (Mix) Could not compile dependency :elli, "/home/john/.asdf/installs/elixir/1.6.3/.mix/rebar3 bare compile --paths "/home/john/code/hc/dylan/_build/test/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile elli", update it with "mix deps.update elli" or clean it with "mix deps.clean elli"

It seems that since 3.0, rebar_erl_vsn was added to rebar.config, could this be the source of the issue?

I'm running Erlang 20.3.6 and Elixir 1.6.3.

@lpil
Copy link
Contributor

lpil commented May 31, 2018

Hi friends, any update here? It'd be great to use the latest Elli

@yurrriq
Copy link
Member

yurrriq commented May 31, 2018

Looks like maybe a Mix issue to me. As a workaround could override the elli hooks in your rebar.config.

@ghost
Copy link

ghost commented Jun 7, 2018

Similar issue here you might want to follow. B

@lpil
Copy link
Contributor

lpil commented Jul 24, 2018

The above issue is closed, does that mean this is fixed?

@ghost
Copy link

ghost commented Jul 24, 2018

@lpil I believe so, but you'll need to ensure you're running rebar3 v 3.6.0 or higher.

@lpil
Copy link
Contributor

lpil commented Jul 24, 2018

It works! Shall we close this?

@ghost
Copy link

ghost commented Jul 24, 2018

@johnhamelink ?

@lpil
Copy link
Contributor

lpil commented Jul 24, 2018

FWIW, John and I work together at Honeycomb TV, we've resolved the issue in the projects in question :)

@johnhamelink
Copy link
Author

Thanks guys :)

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

No branches or pull requests

4 participants