lix/src
Maximilian Bosch 6905291daf
libcmd/installables: force re-evaluation of cached failures
I think that it's not very helpful to get "cached failures" in a wrong
`flake.nix`. This can be very confusing when debugging a Nix expression.
See for instance NixOS/nixpkgs#118115.

In fact, the eval cache allows a forced reevaluation which is used for
e.g. `nix eval`.

This change makes sure that this is the case for `nix build` as well. So
rather than

    λ ma27 [~/Projects/exp] → ../nix/outputs/out/bin/nix build -L --rebuild --experimental-features 'nix-command flakes'
    error: cached failure of attribute 'defaultPackage.x86_64-linux'

the evaluation of already-evaluated (and failed) attributes looks like
this now:

    λ ma27 [~/Projects/exp] → ../nix/outputs/out/bin/nix build -L --rebuild --experimental-features 'nix-command flakes'
    error: attribute 'hell' missing

           at /nix/store/mrnvi9ss8zn5wj6gpn4bcd68vbh42mfh-source/flake.nix:6:35:

                5|
                6|     packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hell;
                 |                                   ^
                7|
    (use '--show-trace' to show detailed location information)
2021-04-19 19:51:04 +02:00
..
build-remote Merge pull request #4477 from NixOS/ca/build-remote 2021-02-26 16:54:44 +01:00
cpptoml Revert the enum struct change 2020-06-18 22:11:26 +00:00
libcmd libcmd/installables: force re-evaluation of cached failures 2021-04-19 19:51:04 +02:00
libexpr libcmd/installables: force re-evaluation of cached failures 2021-04-19 19:51:04 +02:00
libfetchers Revert "libfetchers/tarball: Lock on effectiveUrl" 2021-04-09 13:51:57 +02:00
libmain restoreSignals() + restoreAffinity() -> restoreProcessContext() 2021-04-07 13:10:02 +02:00
libstore Merge branch 'libarchive-decompress' of https://github.com/serokell/nix 2021-04-15 13:39:04 +02:00
libutil Merge pull request #4679 from ony/feature/one-pass-canon-path 2021-04-15 14:11:51 +02:00
nix Restore stack size in child processes 2021-04-07 13:40:13 +02:00
nix-build restoreSignals() + restoreAffinity() -> restoreProcessContext() 2021-04-07 13:10:02 +02:00
nix-channel Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-collect-garbage Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-copy-closure Use RealisedPaths in copyPaths 2021-02-25 17:18:48 +01:00
nix-env Rename Buildable 2021-04-05 09:52:25 -04:00
nix-instantiate Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-store Rename Buildable 2021-04-05 09:52:25 -04:00
nlohmann Revert "Use upstream nlohmann_json" 2021-04-05 21:24:55 +01:00
resolve-system-dependencies Fix macOS build 2021-01-21 12:46:22 +01:00