lix/src
regnat 04b113f6cb Fix nix log with CA derivations
Fix #6209

When trying to run `nix log <installable>`, try first to resolve the derivation pointed to
by `<installable>` as it is the resolved one that holds the build log.

This has a couple of shortcomings:
1. It’s expensive as it requires re-reading the derivation
2. It’s brittle because if the derivation doesn’t exist anymore or can’t
   be resolved (which is the case if any one of its build inputs is missing),
   then we can’t access the log anymore

However, I don’t think we can do better (at least not right now).
The alternatives I see are:
1. Copy the build log for the un-resolved derivation. But that means a
   lot of duplication
2. Store the results of the resolving in the db. Which might be the best
   long-term solution, but leads to a whole new class of potential
   issues.
2022-12-08 16:03:20 -05:00
..
build-remote build-remote: Add brackets to error message 2022-11-04 10:49:44 -07:00
libcmd Merge pull request #3600 from NixOS/auto-uid-allocation 2022-11-29 14:01:42 +01:00
libexpr Merge pull request #7395 from obsidiansystems/evaluating-to-calling 2022-12-02 15:53:57 +01:00
libfetchers Merge pull request #7039 from Mic92/libfetchers-variant 2022-10-31 11:48:51 +01:00
libmain Remove repeat and enforce-determinism options 2022-12-07 11:36:48 +01:00
libstore Fix nix log with CA derivations 2022-12-08 16:03:20 -05:00
libutil getMaxCPU: fix cgroup path 2022-12-04 18:22:12 +01:00
nix Really fix 'nix store make-content-addressed --json' 2022-12-01 16:29:09 +01:00
nix-build nix-build: remove unused --add-root arg 2022-09-27 00:07:42 +02:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Add missing rethrows in conditional exception handlers 2022-06-10 10:52:41 -07:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Replace src/libutil/json.cc with nlohmann json generation 2022-11-16 16:50:50 +01:00
nix-instantiate Revert to copyStore = true for nix-instantiate and nix-env 2022-08-23 14:40:27 +02:00
nix-store Remove repeat and enforce-determinism options 2022-12-07 11:36:48 +01:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00