diff options
author | Christopher Baines <mail@cbaines.net> | 2024-05-11 17:40:39 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-06-11 11:33:05 +0100 |
commit | 04ca393b38d1de4f626c12618f6bf27588043a5f (patch) | |
tree | a1014c02d1456d497f579861cce0fb98857ed6b4 /tests/git.scm | |
parent | aed2e17768bc2a2bbac95066637bbf00a60765b2 (diff) |
svn-download: Reduce svn-multi-fetch builder duplication.
Rather than creating a different builder in the store for every different
download (by hash), remove the hash from the builder and pass it in via an
environment variable. This means that when svn-multi-fetch is used by two
different package sources, the derivations will still differ but the builder
will be shared.
It used to be this way, but changed with
0e73f933b291c7e154c7e019b6de1e2f3a97e4c1. I noticed the hash in the builder
script when wondering why the build coordinator on bayfront was substituting
svn-multi-download files over and over again.
To try and make the effects of introducing variance in to the builder script
more obvious, separate it out in to it's own procedure, so that it's clearer
when there's new data going in that could cause variance.
* guix/svn-download.scm (svn-multi-fetch): Extract out builder script, include
hash in the derivation as an environment variable and update comment to be
more directive.
(svn-multi-fetch-builder): New procedure.
Change-Id: I83c60140ae09e189ee5e5428038a9428ecb8e281
Diffstat (limited to 'tests/git.scm')
0 files changed, 0 insertions, 0 deletions