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

Support local repo relative paths for dependency resolution #2273

Closed
CinchBlue opened this issue Nov 20, 2023 · 3 comments
Closed

Support local repo relative paths for dependency resolution #2273

CinchBlue opened this issue Nov 20, 2023 · 3 comments

Comments

@CinchBlue
Copy link

If i'm not mistaken, the current dependency functions completely ignore relative path dependencies from the Cargo.toml. Is this true?

@ttiurani
Copy link

ttiurani commented Feb 18, 2024

I stumbled onto this myself just now.

Relative paths used to work with crate universe in older versions of rules_rust, but with the latest version 0.39.0, I just get "failed to load" with "No such file or directory".

This is a big problem for development where you want to temporarily use a local clone of dependencies.

@sthornington
Copy link
Contributor

I'm struggling with this, for crates which are part of the dependencies in a crate_universe - I need to iterate on the crate as well as the bazel native rust, and I can't figure out how to refer to a local path crate in a way that doesn't break repin splicing.

@illicitonion
Copy link
Collaborator

Fixed by #3025

There are a few follow-ups coming to fix up a few edge-cases, but this should work now.

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

4 participants