diff options
author | Christopher Baines <mail@cbaines.net> | 2024-05-11 17:40:40 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-06-11 11:33:22 +0100 |
commit | ad8d386168c434b8149beae3838a8f27e487f441 (patch) | |
tree | ecbd198799ac41bc7b79f489d2a5a5f3c1cf540b /tests/git-authenticate.scm | |
parent | 04ca393b38d1de4f626c12618f6bf27588043a5f (diff) |
svn-download: Reduce svn-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-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-fetch): Extract out builder script, include hash
in the derivation as an environment variable and update the comment to be more
directive.
(svn-fetch-builder): New procedure.
Change-Id: I256b94666296ad747f494f0b497ca209b77fbfb4
Diffstat (limited to 'tests/git-authenticate.scm')
0 files changed, 0 insertions, 0 deletions