lix/src/libstore
Matthew Bauer c214cda940 Correctly substitute from different storeDir
Originally, the test was only checking for different “real” storeDir.
That’s an easy case to handle, but the much harder one is if different
virtual store dirs are used. To do this, we need the SubstitutionGoal
to know about the ca, so it can recalculate the path to copy it over.
An important note here is that the store path passed to copyStorePath
needs to be one for srcStore - so that queryPathInfo works properly.

This also adds an error message when the store path from queryPathInfo
is different from the one we requested.
2020-06-13 00:07:42 -05:00
..
builtins Remove hashed-mirrors 2020-06-12 09:51:44 -05:00
binary-cache-store.cc Remove addToStore variant as requested by FIXME 2020-05-29 17:02:32 -04:00
binary-cache-store.hh Remove addToStore variant as requested by FIXME 2020-05-29 17:02:32 -04:00
build.cc Correctly substitute from different storeDir 2020-06-13 00:07:42 -05:00
builtins.hh buildenv: Eliminate global variables, other cleanup 2020-03-24 14:06:47 +01:00
crypto.cc binary-cache-public-keys -> trusted-public-keys 2017-11-20 17:32:34 +01:00
crypto.hh Revert "Get rid of unicode quotes (#1140)" 2016-11-26 00:38:01 +01:00
daemon.cc Add error message when FileIngestionMethod is out of bounds 2020-06-04 11:32:39 -05:00
daemon.hh Recursive Nix support 2019-11-06 00:52:38 +01:00
derivations.cc Merge remote-tracking branch 'origin/master' into enum-FileIngestionMethod 2020-05-26 11:14:08 -04:00
derivations.hh Replace some bool recursive with a new FileIngestionMethod enum 2020-03-29 15:16:20 -04:00
export-import.cc Remove addToStore variant as requested by FIXME 2020-05-29 17:02:32 -04:00
filetransfer.cc datatransfer.{cc,hh} -> filetransfer.{cc,hh} 2020-04-08 22:26:57 +02:00
filetransfer.hh datatransfer.{cc,hh} -> filetransfer.{cc,hh} 2020-04-08 22:26:57 +02:00
fs-accessor.hh Shut up some warnings 2019-09-22 21:57:05 +02:00
gc.cc Merge pull request #3546 from guibou/nix_readfile_on_0_sized_files 2020-05-06 11:33:55 +02:00
globals.cc Show hint how to enable experimental features 2020-05-12 15:47:09 +02:00
globals.hh Remove hashed-mirrors 2020-06-12 09:51:44 -05:00
http-binary-cache-store.cc datatransfer.{cc,hh} -> filetransfer.{cc,hh} 2020-04-08 22:26:57 +02:00
legacy-ssh-store.cc Replace some bool recursive with a new FileIngestionMethod enum 2020-03-29 15:16:20 -04:00
local-binary-cache-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local-fs-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local-store.cc Add makeFixedOutputPathFromCA function 2020-06-12 16:36:35 -05:00
local-store.hh Allow substituting from different storeDir 2020-06-12 09:49:09 -05:00
local.mk Remove global -I flags 2020-03-30 15:30:19 +02:00
machines.cc getMachines(): Cache result 2019-04-01 21:09:35 +02:00
machines.hh Replace $NIX_REMOTE_SYSTEMS with an option "builder-files" 2017-05-02 15:46:09 +02:00
misc.cc Correctly substitute from different storeDir 2020-06-13 00:07:42 -05:00
nar-accessor.cc Provide random access to cached NARs 2017-12-07 01:07:07 +01:00
nar-accessor.hh Fix build on gcc 7 2017-12-16 00:49:31 +01:00
nar-info-disk-cache.cc Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
nar-info-disk-cache.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
nar-info.cc Fix derivation computation with __structuredAttrs and multiple outputs 2020-01-21 21:14:13 +01:00
nar-info.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-store.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
optimise-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
parsed-derivations.cc Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
parsed-derivations.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
path.cc nix-build: Fix !<output> handling 2020-03-04 13:56:17 +01:00
path.hh Never cast FileIngestionMethod to or from boolean 2020-03-30 22:31:51 +00:00
pathlocks.cc pathlocks: add include to fcntl.h for O_CLOEXEC 2019-08-07 07:41:22 -05:00
pathlocks.hh Use BSD instead of POSIX file locks 2019-08-02 18:39:16 +02:00
profiles.cc Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
profiles.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
references.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
references.hh Allow content-addressable paths to have references 2019-10-21 17:47:24 +02:00
remote-fs-accessor.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
remote-fs-accessor.hh Provide random access to cached NARs 2017-12-07 01:07:07 +01:00
remote-store.cc Allow substituting from different storeDir 2020-06-12 09:49:09 -05:00
remote-store.hh Allow substituting from different storeDir 2020-06-12 09:49:09 -05:00
s3-binary-cache-store.cc datatransfer.{cc,hh} -> filetransfer.{cc,hh} 2020-04-08 22:26:57 +02:00
s3-binary-cache-store.hh Fix getS3Stats() 2016-10-06 17:00:52 +02:00
s3.hh DataTransfer -> FileTransfer 2020-04-08 22:26:57 +02:00
sandbox-defaults.sb sandbox: fix /bin/sh on catalina 2020-03-20 22:12:30 +01:00
sandbox-minimal.sb Always use the Darwin sandbox 2017-06-06 18:44:49 +02:00
sandbox-network.sb OS X sandbox: Improve builtin sandbox profile 2017-05-31 17:25:51 +02:00
schema.sql Mark content-addressed paths in the Nix database and in .narinfo 2016-08-10 18:05:35 +02:00
serve-protocol.hh Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
sqlite.cc Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
sqlite.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
ssh-store.cc Fix segfault in gcc on i686-linux 2020-02-07 13:01:48 +01:00
ssh.cc Fix PR_SET_PDEATHSIG results in Broken pipe (#2395) 2020-02-14 07:51:44 +01:00
ssh.hh SSHMaster: Bypass SSH when connecting to localhost 2018-08-03 21:20:38 +02:00
store-api.cc Add makeFixedOutputPathFromCA function 2020-06-12 16:36:35 -05:00
store-api.hh Correctly substitute from different storeDir 2020-06-13 00:07:42 -05:00
worker-protocol.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00