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

Can't mix compile with path dependency in Cargo.toml #577

Closed
grzuy opened this issue Nov 20, 2023 · 2 comments
Closed

Can't mix compile with path dependency in Cargo.toml #577

grzuy opened this issue Nov 20, 2023 · 2 comments

Comments

@grzuy
Copy link

grzuy commented Nov 20, 2023

== Compilation error in file lib/candlex/native.ex ==
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom
    (elixir 1.15.7) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir 1.15.7) lib/enum.ex:166: Enumerable.reduce/3
    (elixir 1.15.7) lib/enum.ex:4387: Enum.filter/2
    (rustler 0.30.0) lib/rustler/compiler/config.ex:130: Rustler.Compiler.Config.gather_local_crates/4
    (rustler 0.30.0) lib/rustler/compiler/config.ex:108: Rustler.Compiler.Config.external_resources/3
    (rustler 0.30.0) lib/rustler/compiler/config.ex:79: Rustler.Compiler.Config.build/1
    (rustler 0.30.0) lib/rustler/compiler.ex:8: Rustler.Compiler.compile_crate/3
    lib/candlex/native.ex:11: (module)
@grzuy
Copy link
Author

grzuy commented Nov 20, 2023

Concretely happening for me in https://github.com/mimiquate/candlex/compare/candle-core-path?expand=1.

@grzuy
Copy link
Author

grzuy commented Nov 20, 2023

In this case the crate dependency is a workspace member and the one failing is another workspace member of the same workspace.
Might be an edge case causing this?

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

2 participants