mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
rustPlatform.buildRustPackage: cleaner output on verifyCargoDeps (#77567)
When this fails, the user may want to copy-paste the path to the "bad" Cargo.lock file to inspect. The trailing `.` on `$cargoDeps.` gets caught in most terminal copy-pastes. Since half the lines already don't have it, this removes it from all of them for consistent output.
This commit is contained in:
parent
26a4e0e57c
commit
6e8c377562
@ -100,9 +100,9 @@ stdenv.mkDerivation (args // {
|
||||
'' + stdenv.lib.optionalString verifyCargoDeps ''
|
||||
if ! diff source/Cargo.lock $cargoDeps/Cargo.lock ; then
|
||||
echo
|
||||
echo "ERROR: cargoSha256 is out of date."
|
||||
echo "ERROR: cargoSha256 is out of date"
|
||||
echo
|
||||
echo "Cargo.lock is not the same in $cargoDeps."
|
||||
echo "Cargo.lock is not the same in $cargoDeps"
|
||||
echo
|
||||
echo "To fix the issue:"
|
||||
echo '1. Use "1111111111111111111111111111111111111111111111111111" as the cargoSha256 value'
|
||||
|
Loading…
Reference in New Issue
Block a user