-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
rust: find nested packages in git repositories #142699
Conversation
this mimics the heuristic cargo uses for finding crates in their git repositories ([cargo-issue-1462]). [cargo-issue-1462]: rust-lang/cargo#1462
751e19a
to
b2aa19e
Compare
Can we have a test case for this? |
+1 this would be really useful for us! I don’t have enough context to properly review this, but would appreciate this feature. |
got one now 🙂 here's the error message the test throws when b2aa19e is reverted.
|
Test fails on macos 10.15:
|
👍 FWIW it works with just |
8f35c91
to
445510e
Compare
cool, i took the liberty to amend and force-push to the macos fix. |
@andir the test case is in place. |
rust: find nested packages in git repositories
this mimics the heuristic cargo uses for finding crates in their git
repositories (cargo-issue-1462).
Motivation for this change
buildRustPackage
fails when used with thecargoLock
argument and the package in the git dependency is not found in the top-level Cargo.toml. An example would this dependency specification:Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)