1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 14:10:59 +01:00

Improve display of GitHub input filenames in error messages

E.g.

  … while evaluating the attribute 'buildCommand' of the derivation 'vm-test-run-github-flakes'

  at «github:NixOS/nixpkgs/2fa57ed190fd6c7c746319444f34b5917666e5c1»/pkgs/stdenv/generic/make-derivation.nix:278:7:
This commit is contained in:
Eelco Dolstra 2022-07-14 16:51:54 +02:00
parent 9a9b03b8d6
commit e17a619106
4 changed files with 24 additions and 9 deletions

View file

@ -232,7 +232,11 @@ struct GitArchiveInputScheme : InputScheme
{
auto [storePath, input2] = downloadArchive(store, input);
return {makeZipInputAccessor(CanonPath(store->toRealPath(storePath))), input2};
auto accessor = makeZipInputAccessor(CanonPath(store->toRealPath(storePath)));
accessor->setPathDisplay("«" + input2.to_string() + "»");
return {accessor, input2};
}
};