lix/src/libstore
Daiderd Jordan 97baf32fbc
build: add exit code for hash and check mismatches
Makes it easier to identify the failure reason in other tooling, eg.
differentiate between a non-deterministic --check vs a failed build.

	$ nix-build '<nix/fetchurl.nix>' --argstr url http://example.org --argstr sha256 0000000000000000000000000000000000000000000000000000
	hash mismatch in fixed-output derivation '/nix/store/nzi9ck45rwlxzcwr25is7qlf3hs5xl83-example.org':
	  wanted: sha256:0000000000000000000000000000000000000000000000000000
	  got:    sha256:08y4734bm2zahw75b16bcmcg587vvyvh0n11gwiyir70divwp1rm
	$ echo $?
	102

	$ nix-build -E 'with import <nixpkgs> {}; runCommand "foo" {} "date +%s > $out"' --check
	warning: rewriting hashes in '/nix/store/g3k47g0399fvjmbm0p0mnad74k4w8vkz-foo'; cross fingers
	error: derivation '/nix/store/mggc8dz13ackb49qca6m23zq4fpq132q-foo.drv' may not be deterministic: output '/nix/store/g3k47g0399fvjmbm0p0mnad74k4w8vkz-foo' differs
	$ echo $?
	104
2019-07-02 00:12:34 +02:00
..
builtins Fix segfault in builtin fetchurl with hashed mirrors + SRI hashes 2019-06-01 15:27:43 +02:00
binary-cache-store.cc Fix 'error 9 while decompressing xz file' 2019-06-24 21:59:51 +02:00
binary-cache-store.hh unsupported(): Show the name of the unsupported operation 2019-01-18 13:34:53 +01:00
build.cc build: add exit code for hash and check mismatches 2019-07-02 00:12:34 +02: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 build: add exit code for hash and check mismatches 2019-07-02 00:12:34 +02:00
download.hh Refactor downloadCached() interface 2019-06-24 22:12:26 +02:00
export-import.cc
fs-accessor.hh
gc.cc findRootsNoTemp: fixes comment about findRuntimeRoots 2019-04-30 22:43:24 -04:00
globals.cc config: use all of XDG_CONFIG_DIRS 2018-10-31 09:24:43 +01:00
globals.hh Add '--no-net' convenience flag 2019-06-24 22:07:29 +02:00
http-binary-cache-store.cc Add '--no-net' convenience flag 2019-06-24 22:07:29 +02:00
legacy-ssh-store.cc unsupported(): Show the name of the unsupported operation 2019-01-18 13:34:53 +01:00
local-binary-cache-store.cc Make LocalBinaryCacheStore::narFromPath() run in constant memory 2018-05-30 13:34:57 +02:00
local-fs-store.cc
local-store.cc Revert "Restore parent mount namespace before executing a child process" 2019-02-05 10:49:19 +01:00
local-store.hh findRoots(): Add 'censor' parameter 2019-03-14 13:53:34 +01:00
local.mk Remove mentions of libformat, it no longer exists 2019-01-05 14:31:29 -05:00
machines.cc getMachines(): Cache result 2019-04-01 21:09:35 +02:00
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 pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
optimise-store.cc Fix optimise-store.cc to skip more paths on macOS 2018-06-14 12:34:55 -04:00
parsed-derivations.cc experimental/optional -> optional 2019-03-14 14:10:52 +01:00
parsed-derivations.hh experimental/optional -> optional 2019-03-14 14:10:52 +01:00
pathlocks.cc
pathlocks.hh
profiles.cc
profiles.hh
references.cc
references.hh
remote-fs-accessor.cc
remote-fs-accessor.hh
remote-store.cc findRoots(): Add 'censor' parameter 2019-03-14 13:53:34 +01:00
remote-store.hh experimental/optional -> optional 2019-03-14 14:10:52 +01:00
s3-binary-cache-store.cc Add a 5 seconds of timeouts to connect to S3. 2019-03-15 13:23:58 +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 Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
sqlite.cc
sqlite.hh
ssh-store.cc
ssh.cc Revert "Restore parent mount namespace before executing a child process" 2019-02-05 10:49:19 +01:00
ssh.hh SSHMaster: Bypass SSH when connecting to localhost 2018-08-03 21:20:38 +02:00
store-api.cc Fix 'error 9 while decompressing xz file' 2019-06-24 21:59:51 +02:00
store-api.hh nix-channel: Don't fetch binary-cache-url 2019-06-25 13:27:16 +02:00
worker-protocol.hh