-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Provider hook for pre not working in rebar when started from Mix #7733
Comments
pmenhart
added a commit
to pmenhart/no_slides
that referenced
this issue
Jun 6, 2018
* Test with several slave nodes in a cluster (configured in config/test.exs). To prevent running RiakCore on the master node (harmless, but clutters the logs), invoke with `mix test --no-start` * Fixed a few warnings * Updated riak_core.schema Notes: * Running this project on Elixir 1.6.5 with Erlang 20.3.6. I had to comment out "warnings_as_errors" in `deps/riak_ensemble/rebar.config` and in `deps/riak_core/rebar.config` * This project uses riak_core_ng v3.0.9. Later riak_core_ng commits introduced gen_fsm_compat, which fails with newer Elixir+rebar3 because of "missing erl_vsn" issue: rebar_erl_vsn is a pre-compile hook in rebar.config of gen_fsm_compat and few other projects. Error seems to be caused by Mix not handling rebar3 hooks properly. See elixir-lang/elixir#7733 and Kyorai/riak_core#23 This issue is not specific to erl_vsn: for example, the forked https://github.com/gpad/cuttlefish (see mix.exs) differs from the official version only by rebar.config commenting out: % {provider_hooks, [{post, [{compile, {default, escriptize}}]}]}.
I can reproduce this when running the rebar3 bare compiler directly in the dependency directory, it seems that plugins are not loaded correctly in the bare compiler. Please open an issue with rebar3. |
I reproduced by running |
Closing, this issue is being tracked here: erlang/rebar3#1804 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Elixir & Erlang/OTP versions (elixir --version):
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:10] [hipe] [kernel-poll:false]
Elixir 1.6.4 (compiled with OTP 19)
Operating system:
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
Current behaviour
Fails to compile rebar3 dependency. I made a minimal example here .
Compiling the dependency directly seems to work just fine:
I looked at the rebar_erl_vsn provider hook but I don't see anything wrong or abnormal. Also it seems to work fine in a pure rebar3 project.
Expected behaviour
Compiles correctly.
The text was updated successfully, but these errors were encountered: