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

Library using Rambo fails in a .exs script #22

Open
binaryape opened this issue Mar 2, 2023 · 1 comment
Open

Library using Rambo fails in a .exs script #22

binaryape opened this issue Mar 2, 2023 · 1 comment

Comments

@binaryape
Copy link

My library using Rambo is failing when used in an .exs script and run with elixir ./examples/mdui_list.exs - this is different to the issue with escripts in #14 but seems to have a similar cause, access to priv.

I'm using Mix.install in the script to install my library, which in turn installs Rambo.

Is there any way to work around this?

Example error:

sh: /Users/pete/Library/Caches/mix/installs/elixir-1.14.2-erts-13.1.3/ca16c8c442e98299bb3e789b69f4a76b/_build/dev/lib/rambo/priv/rambo: No such file or directory
sh: line 0: exec: /Users/pete/Library/Caches/mix/installs/elixir-1.14.2-erts-13.1.3/ca16c8c442e98299bb3e789b69f4a76b/_build/dev/lib/rambo/priv/rambo: cannot execute: No such file or directory
** (EXIT from #PID<0.95.0>) :epipe
@binaryape
Copy link
Author

Update: It's not access to priv - it's that the compiled rambo binary isn't there. If I copy the binary from my main project into the temporary _build directory of the script everything works. I think this is due to #13 and so will be fixed when that is fixed.

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

1 participant