diff options
author | Christopher Baines <mail@cbaines.net> | 2024-05-11 17:40:42 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-06-11 11:33:43 +0100 |
commit | 0daa72e34d7fafc927e2d476ef613c582107781d (patch) | |
tree | 99ab77486de0efd045e2ef02b51147337ee4af51 /gnu/packages | |
parent | 275f27989175f31e9feb364ed7deac2435b08f68 (diff) | |
download | guix-0daa72e34d7fafc927e2d476ef613c582107781d.tar guix-0daa72e34d7fafc927e2d476ef613c582107781d.tar.gz |
git-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 git-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
264fdbcaff9c078642355bace0c61c094b3581fc. I noticed this through looking at
the same problem with svn-multi-fetch.
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/git-download.scm (git-fetch/in-band*): Extract out builder script,
include hash in the derivation as an environment variable and update the
comment to be more directive.
(git-fetch-builder): New procedure.
Change-Id: I59c9fc445667c0e7dc44bcb706818300c394a1e5
Diffstat (limited to 'gnu/packages')
0 files changed, 0 insertions, 0 deletions