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

Error used in Elixir mix project #3

Closed
jsvisa opened this issue Mar 19, 2014 · 2 comments
Closed

Error used in Elixir mix project #3

jsvisa opened this issue Mar 19, 2014 · 2 comments

Comments

@jsvisa
Copy link

@jsvisa jsvisa commented Mar 19, 2014

I add this project as Elixir mix dependent, when I get the project use mix deps.get, it doesn't work, and runs out:

Error evaluating rebar config script ./rebar.config.script: 26: evaluation failed with reason    error:undef and stacktrace [{rebar_utils,is_arch,[[98,115,100]],[]},{erl_eval,do_apply,6,[{file,[101,114,108,95,101,118,97,108,46,101,114,108]},{line,569}]},{erl_eval,expr,5,[{file,[101,114,108,95,101,118,97,108,46,101,114,108]},{line,243}]},{file,eval_stream2,6,[{file,[102,105,108,101,46,101,114,108]},{line,1368}]},{file,script,2,[{file,[102,105,108,101,46,101,114,108]},{line,1067}]},{'Elixir.File','cd!',2,[{file,[108,105,98,47,102,105,108,101,46,101,120]},{line,894}]},{'Elixir.Mix.Rebar',eval_script,2,[{file,[108,105,98,47,109,105,120,47,114,101,98,97,114,46,101,120]},{line,128}]},{'Elixir.Mix.Deps.Loader','-rebar_dep/1-fun-0-',2,[{file,[108,105,98,47,109,105,120,47,100,101,112,115,47,108,111,97,100,101,114,46,101,120]},{line,177}]}]
Any dependency defined in the script won't be available unless you add them to your Mix project
@kellymclaughlin
Copy link
Owner

@kellymclaughlin kellymclaughlin commented Mar 19, 2014

This looks like a problem with your environment. I'd make sure you are not using a really old version of rebar that predates the rebar_utils:is_arch/1 function. Things work fine for me when building the project standalone or as a dependency of a standard erlang project.

@kellymclaughlin
Copy link
Owner

@kellymclaughlin kellymclaughlin commented Nov 20, 2014

I know this is an old issue now and it's possible to workaround by adding rebar as a dependency in a mix file, but I've updated the rebar configuration to avoid this issue and the necessity for using that workaround. I pushed a 0.3 tag with the change in case it's useful for you.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.