Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-builder/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas de323a72dd swarm-builder: lock the swarm meta flake on request
A request on $SWARM.builder.lock-meta carries a rendered flake.nix. The
builder writes it into a scratch directory, runs `nix flake lock` there
with the same forge credential helper its builds use, answers with the
flake.lock nix wrote, and removes the directory. It commits nothing; the
controller commits the lock beside the flake.

Locks are answered in their own loop, like archetype evaluations, so one
does not wait behind an hour-long build. The auth callout grants the
subject to the builder (subscribe) and the controller (publish) only.

Ported from c574a1694 onto the swarm-wire crate.

Refs #4857
2026-10-24 21:13:24 +02:00
..
archetypes.rs move the builder and claude login wire contracts into swarm-wire 2026-10-18 12:36:45 +02:00
main.rs swarm-builder: lock the swarm meta flake on request 2026-10-24 21:13:24 +02:00
nix_build.rs swarm-builder: lock the swarm meta flake on request 2026-10-24 21:13:24 +02:00