summaryrefslogtreecommitdiff
path: root/tests/git.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-05-11 17:40:41 +0100
committerChristopher Baines <mail@cbaines.net>2024-06-11 11:33:31 +0100
commit275f27989175f31e9feb364ed7deac2435b08f68 (patch)
tree25fbf5a51b3365306a3ed690071e8a25cac3391c /tests/git.scm
parentad8d386168c434b8149beae3838a8f27e487f441 (diff)
hg-download: Reduce 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 hg-fetch is used by two different package sources, the derivations will still differ but the builder will be shared. Looking at the code, becuase the ref is also in the builder, the builders have been duplicated for a while. The overhead is probably limited though since hg-reference isn't used much compared to say svn-multi-reference. 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/hg-download.scm (hg-fetch): Extract out builder script and include hash, hg ref url, and hg ref changeset in the derivation as an environment variables. (hg-fetch-builder): New procedure. Change-Id: I3c3a0b4963ea1b208bf1d5137ef98666458ae2d7
Diffstat (limited to 'tests/git.scm')
0 files changed, 0 insertions, 0 deletions