lix/src/libstore
zimbatm 5e6fa9092f
libstore: improve hash mismatch error messages
Use the same output ordering and format everywhere.

This is such a common issue that we trade the single-line error message for
more readability.

Old message:
```
fixed-output derivation produced path '/nix/store/d4nw9x2sy9q3r32f3g5l5h1k833c01vq-example.com' with sha256 hash '08y4734bm2zahw75b16bcmcg587vvyvh0n11gwiyir70divwp1rm' instead of the expected hash '1xzwnipjd54wl8g93vpw6hxnpmdabq0wqywriiwmh7x8k0lvpq5m'
```

New message:
```
hash mismatch in fixed-output derivation '/nix/store/d4nw9x2sy9q3r32f3g5l5h1k833c01vq-example.com':
  wanted: sha256:1xzwnipjd54wl8g93vpw6hxnpmdabq0wqywriiwmh7x8k0lvpq5m
  got:    sha256:08y4734bm2zahw75b16bcmcg587vvyvh0n11gwiyir70divwp1rm

```
2018-12-12 17:42:00 +01:00
..
builtins fetchurl: Respect unpack 2018-09-05 21:22:37 +02:00
binary-cache-store.cc
binary-cache-store.hh
build.cc libstore: improve hash mismatch error messages 2018-12-12 17:42:00 +01:00
builtins.hh
crypto.cc
crypto.hh
derivations.cc Move structured attrs handling into a separate class 2018-09-28 14:32:46 +02:00
derivations.hh Move structured attrs handling into a separate class 2018-09-28 14:32:46 +02:00
download.cc libstore: improve hash mismatch error messages 2018-12-12 17:42:00 +01:00
download.hh
export-import.cc
fs-accessor.hh
gc.cc
globals.cc config: use all of XDG_CONFIG_DIRS 2018-10-31 09:24:43 +01:00
globals.hh Enable sandboxing by default 2018-11-07 17:08:28 +01:00
http-binary-cache-store.cc If fallback is enabled, temporarily disable substituters after a failure 2018-09-07 17:08:43 +02:00
legacy-ssh-store.cc Store: expose the protocol version used by a store 2018-09-02 12:54:29 +02:00
local-binary-cache-store.cc
local-fs-store.cc
local-store.cc libstore: improve hash mismatch error messages 2018-12-12 17:42:00 +01:00
local-store.hh Store: expose the protocol version used by a store 2018-09-02 12:54:29 +02:00
local.mk
machines.cc
machines.hh
misc.cc
nar-accessor.cc
nar-accessor.hh
nar-info-disk-cache.cc Fix assertion failure in NarInfoDiskCache 2018-12-12 17:13:22 +01:00
nar-info-disk-cache.hh
nar-info.cc
nar-info.hh
nix-store.pc.in
optimise-store.cc
parsed-derivations.cc Check requiredSystemFeatures for local builds 2018-09-28 16:10:27 +02:00
parsed-derivations.hh Check requiredSystemFeatures for local builds 2018-09-28 16:10:27 +02:00
pathlocks.cc
pathlocks.hh
profiles.cc
profiles.hh
references.cc
references.hh
remote-fs-accessor.cc
remote-fs-accessor.hh
remote-store.cc Merge branch 'nix-doctor' of https://github.com/LnL7/nix 2018-10-27 12:54:22 +02:00
remote-store.hh Merge branch 'nix-doctor' of https://github.com/LnL7/nix 2018-10-27 12:54:22 +02:00
s3-binary-cache-store.cc s3: make scheme configurable 2018-12-07 23:55:38 +01:00
s3-binary-cache-store.hh
s3.hh s3: make scheme configurable 2018-12-07 23:55:38 +01:00
sandbox-defaults.sb
sandbox-minimal.sb
sandbox-network.sb
schema.sql
serve-protocol.hh
sqlite.cc
sqlite.hh
ssh-store.cc
ssh.cc Restore parent mount namespace before executing a child process 2018-11-13 16:15:30 +01:00
ssh.hh
store-api.cc copyStorePath: Fix hash errors when copying from older store 2018-10-29 20:24:37 +01:00
store-api.hh Merge branch 'nix-doctor' of https://github.com/LnL7/nix 2018-10-27 12:54:22 +02:00
worker-protocol.hh