diff options
author | Simon Rainerson <simon.rainerson@goodbyekansas.com> | 2023-01-31 11:36:13 +0100 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2023-08-07 10:27:40 +0200 |
commit | 31a6e10fe52fd4265501553ca479c51b510137e1 (patch) | |
tree | f104463003bc1f986083d661c5f4b0b26d7370c3 /src/libexpr/eval-cache.cc | |
parent | 9113b4252b5cebebb929915dd0f3e230238be1ab (diff) |
Fix misread of source if path is already valid
When receiving a stream of NARs through the ssh-ng protocol, an already
existing path would cause the NAR archive to not be read in the stream,
resulting in trying to parse the NAR as a ValidPathInfo. This results in
the error message:
error: not an absolute path: 'nix-archive-1'
Fixes #6253
Usually this problem is avoided by running QueryValidPaths before
AddMultipleToStore, but can arise when two parallel nix processes gets
the same response from QueryValidPaths. This makes the problem more
prominent when running builds in parallel.
Diffstat (limited to 'src/libexpr/eval-cache.cc')
0 files changed, 0 insertions, 0 deletions