-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo install fails from local git checkout #5495
Comments
Thanks for the report! This is currently because @sgrif would it be possible to switch diesel's internal dependencies to |
Is it desired that |
I think it makes sense for git and path deps yeah, but not for crates.io |
We just refactored our project to make use of workspaces, but now we don't seem to have a replacement for our install from git instructions: Making matters a bit worse, is that the error message isn't very clear:
I could see |
Search for root manifest with ephemeral workspaces Fixes #5495. This seems like it's too simple to just work like this, but after trying a few different things, this was the only solution which worked reliably for me. I've verified that no `/target` is present in the actual checkout location, the target directory used is actually the one created in `/tmp`. I've also verified that both workspaces and "normal" packages still install through git and that a normal `cargo install --path` works too (though that doesn't use ephemeral workspaces anyways).
If I clone diesel from https://github.com/diesel-rs/diesel and enter the
diesel_cli
directory and attempt tocargo install --path .
from there it fails to pick up a local dependency from the repo and fails to install. See: diesel-rs/diesel#1683 for more information.The text was updated successfully, but these errors were encountered: