-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix handling of cargo.lock outside a workspace
if Cargo.toml is outside a workspace, Cargo.lock is generated in the same directory as Cargo.toml
- Loading branch information
1 parent
b3ee74a
commit 737121e
Showing
5 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
23 changes: 23 additions & 0 deletions
23
tests/testpkgs/cargo-lock-generate/with-lockfile-metadata-path-outside-workspace/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ python3Packages | ||
, rustPlatform | ||
, fetchFromGitHub | ||
}: | ||
|
||
python3Packages.buildPythonPackage rec { | ||
pname = "pylance"; | ||
version = "0.15.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "lancedb"; | ||
repo = "lance"; | ||
rev = "v${version}"; | ||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
rustPlatform.cargoSetupHook | ||
rustPlatform.maturinBuildHook | ||
]; | ||
|
||
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters