fix(ops/pipelines): Realise anchor derivation for rooting

Turns the anchor derivation into something that can actually be
built (a call creating a propagated build inputs file), and builds it.

This should fix the anchoring logic we have on canon.

Change-Id: If6a7662b82e2e396388980f65e332cf67a45b46e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4763
Tested-by: BuildkiteCI
Autosubmit: tazjin <mail@tazj.in>
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-01-01 18:37:58 +03:00 committed by clbot
parent 5a6f984222
commit 4ab061ed98
2 changed files with 4 additions and 4 deletions

View file

@ -108,8 +108,8 @@ in readTree.fix(self: (readDepot {
});
# Derivation that gcroots all depot targets.
ci.gcroot = self.third_party.nixpkgs.symlinkJoin {
ci.gcroot = with self.third_party.nixpkgs; makeSetupHook {
name = "depot-gcroot";
paths = self.ci.targets;
};
deps = self.ci.targets;
} emptyFile;
})

View file

@ -66,7 +66,7 @@ steps:
- label: ":anchor:"
if: "build.branch == 'refs/heads/canon'"
command: |
nix-instantiate -A ci.gcroot --add-root /nix/var/nix/gcroots/depot/canon
nix-build -A ci.gcroot --out-link /nix/var/nix/gcroots/depot/canon
depends_on:
- step: ":duck:"
allow_failure: false