-
Notifications
You must be signed in to change notification settings - Fork 492
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
bug: cairo_filesystem detect_corelib fails when used as a git dependency #1595
Comments
starkware-libs#1595 Find `corelib` in current crate path (from file path)
Until starkware-libs/cairo#1595 is resolved And serve.rs tweaks
@maciektr will work on this. Our goal is to provide an API to provide custom paths to the |
I second virtual FS corelib. Projects shouldn't have to include |
I think this is fixed now. You can probably check out how Scarb are doing it. If it's still an issue, I'll reopen |
Bug Report
Cairo version:
74b4d12
Current behavior:
thread 'main' panicked at 'Corelib not found.', /Users/shramee/.cargo/git/checkouts/cairo-f086c7e6d4098a68/74b4d12/crates/cairo-filesystem/src/detect.rs:34:5
When using
cairo_compiler::db::RootDatabase;
to get defaultlet mut db_val = RootDatabase::default();
Using crates from the git repo like so,
Expected behavior:
Corelib dir to be found from installed git crate path.
Steps to reproduce:
Related code:
Tiniest reproducible version:
Issue is in
cairo_filesystem::detect::detect_corelib
.Cargo.toml
test.rs
Other information:
The text was updated successfully, but these errors were encountered: