Always fetch allRefs

Having CI confirm allRefs false is still safe would require a network
hit for each repo, which is already problematic. But
https://github.com/NixOS/nix/issues/7120 means we'd need to drop CI's
cached content, not just its cached refs: given how much we're fetching
that seems too much.

Fetch all refs unconditionally, assuming we're typically re-fetching the
same fixed rev repeatedly, which should be cached.
This commit is contained in:
Marien Zwart 2024-05-25 12:46:43 +10:00
parent 363cb033fb
commit 6401eecb57
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

View file

@ -52,7 +52,7 @@
}:
let
inherit (lib) optionalAttrs optionalString;
inherit (import ./fetch-overrides.nix) extraPins extraUrls allRefsRepos;
inherit (import ./fetch-overrides.nix) extraPins extraUrls;
# Step 1: determine which Emacs packages to pull in.
#
@ -239,7 +239,7 @@ let
{
inherit url;
rev = pin;
allRefs = allRefsRepos.${url} or false;
allRefs = true;
submodules = !(p.recipe.nonrecursive or false);
# TODO: pull ref from derivation.src when not pulling it from p.recipe?
# Note Doom does have packages with pin + branch (or nonrecursive) set,