useFetchCargoVendor tries to look up Cargo.lock in sourceRoot rather than sourceRoot/cargoRoot
Steps To Reproduce
Steps to reproduce the behavior:
Create a package using rustPlatform.buildRustPackage, set cargoRoot to a subdir containing the Cargo.lock file
Expected behavior
Cargo.lock should be looked up in $sourceRoot/$cargoRoot
Screenshots
N/A
Additional context
N/A
Metadata
system: "x86_64-linux"
host os: Linux 6.11.5-zen1, NixOS, 25.05 (Warbler), 25.05.20241115.5e4fbfb
multi-user?: yes
sandbox: yes
version: nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/user/.config/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/kqpjnkkpv1drbnvrqbhnyd2ixy9dymzb-lix-2.91.1/share
Describe the bug
useFetchCargoVendor
tries to look upCargo.lock
insourceRoot
rather thansourceRoot/cargoRoot
Steps To Reproduce
Steps to reproduce the behavior:
rustPlatform.buildRustPackage
, setcargoRoot
to a subdir containing the Cargo.lock fileExpected behavior
Cargo.lock should be looked up in
$sourceRoot/$cargoRoot
Screenshots
N/A
Additional context
N/A
Metadata
"x86_64-linux"
Linux 6.11.5-zen1, NixOS, 25.05 (Warbler), 25.05.20241115.5e4fbfb
yes
yes
nix-env (Lix, like Nix) 2.91.1 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/user/.config/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/nix/store/1c1x2ki3lz5k5nw5z0bl0glizgb0k0rb-plasma-workspace-6.2.3/etc/xdg/nix/nix.conf:/nix/store/ya7vhc1j80aq3vn643k2sq4i7c2vsqr1-kglobalacceld-6.2.3/etc/xdg/nix/nix.conf:/nix/store/pdgsrs8i0crldkl8n2cp9jx3h06rcnzc-baloo-6.8.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/kqpjnkkpv1drbnvrqbhnyd2ixy9dymzb-lix-2.91.1/share
/nix/store/hfz1qqd0z8amlgn8qwich1dvkmldik36-source
Notify maintainers
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.