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

allow git deps to have workspaces #281

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

apoelstra
Copy link
Contributor

This should be correctly credited to @marius851000 since I copied it directly from #166, since it was a narrow part of that changeset that I could understand/justify.

What it does is, in the case that you have a git reference to a crate whose git repo contains workspaces, e.g. mutagen, then rather than trying to directly use the root Cargo.toml (which has no information, just a list of workspaces), it parses it to find the path to the actual Cargo.toml for the crate we're trying to depend on, and uses that.

This is shamelessly stolen from nix-community#166.
@tilpner tilpner mentioned this pull request Sep 20, 2023
@kolloch
Copy link
Collaborator

kolloch commented Oct 16, 2023

Thank you, @marius851000 and @apoelstra !

@kolloch kolloch merged commit 9c1f93c into nix-community:master Oct 16, 2023
@Ericson2314
Copy link
Collaborator

Could we have a test for this?

@apoelstra apoelstra deleted the 2023-02--git-deps branch December 6, 2023 21:53
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

Successfully merging this pull request may close these issues.

3 participants