1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00
nix/src
Maximilian Bosch cb7beb05cd path-info: print correct path when using nix path-info --store file://... --all --json
When querying all paths in a binary cache store, the path's representation
is `<hash>-x` (where `x` is the value of `MissingName`) because the .narinfo
filenames only contain the hash.

Before cc46ea1630 this worked correctly,
because the entire path info was read and the path from this
representation was printed, i.e. in the form `<hash>-<name>`. Since then
however, the direct result from `queryAllValidPaths()` was used as `path`.

Added a regression test to make sure the behavior remains correct.

(cherry picked from commit c80cd6bb06)
2024-04-10 17:37:39 +00:00
..
build-remote build-remote: fix format string shenanigans 2024-03-26 13:35:06 +00:00
libcmd :print strings directly in nix repl 2024-03-09 18:13:08 -08:00
libexpr builtins.addDrvOutputDependencies: fix commentary 2024-03-29 10:56:48 +00:00
libfetchers Add trust-tarballs-from-git-forges setting 2024-04-02 16:06:10 +00:00
libmain :quit in the debugger should quit the whole program 2024-02-20 10:01:13 -08:00
libstore Fix the outputs moving on macOS 2024-03-07 14:52:40 +01:00
libutil build-remote: fix format string shenanigans 2024-03-26 13:35:06 +00:00
nix path-info: print correct path when using nix path-info --store file://... --all --json 2024-04-10 17:37:39 +00:00
nix-build Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-channel Say how many channels were unpacked 2024-02-20 19:17:18 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Handle the case where a parent of ~/.nix-defexpr is a symlink 2024-04-03 15:20:54 +00:00
nix-instantiate Get rid of CanonPath::fromCwd 2024-02-08 11:01:41 -05:00
nix-store Add Git object hashing to the store layer 2024-02-27 11:27:34 -05:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00