summaryrefslogtreecommitdiff
path: root/daemon.am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-04-03 23:41:16 +0200
committerLudovic Courtès <ludo@gnu.org>2014-04-03 23:55:51 +0200
commit4b00f3434e47fc2ddbfda887f36ddbba6a742b82 (patch)
tree528dfd849f71ba71467ff636ecee220db1d19767 /daemon.am
parent50322c847dc28f2a1e2e6efaa0d84d5561bc8d0a (diff)
downloadguix-4b00f3434e47fc2ddbfda887f36ddbba6a742b82.tar.gz
guix-4b00f3434e47fc2ddbfda887f36ddbba6a742b82.tar.xz
offload: Prevent the '.drv' and build result from being GC'd.
Before that, there was a small time window during which the GC could wipe the .drv (before 'guix build' has been called), or the build result (before 'retrieve-files' has started.) * guix/scripts/offload.scm (remote-pipe): Add #:quote? parameter and honor it. (%gc-root-file): New variable. (register-gc-root, remove-gc-root): New procedures. (offload): Adjust comment. Run 'guix build' with '-r %GC-ROOT-FILE'. (transfer-and-offload): Call 'register-gc-root' before sending (derivation-file-name DRV). Call 'remove-gc-root' after the call to 'offload' or 'retrieve-files'. (send-files): Call 'remote-pipe' with #:quote? #f. (retrieve-files): Likewise.
Diffstat (limited to 'daemon.am')
0 files changed, 0 insertions, 0 deletions