banger/internal
Thales Maciel 1e967140c3
Speed up vm run repo import
Replace the post-boot full-history git bundle path with a shallow repo copy so vm run no longer spends its quiet time shipping and cloning every object in the source repository.

Stage a depth-10 no-checkout clone from the host repo, fetch the requested checkout commit only when it is outside the shallow window, rewrite origin back to the host repo's origin URL, and keep the existing guest checkout plus working-tree overlay behavior.

Add explicit [vm run] progress lines after [vm create] ready so the user can see the SSH wait, shallow repo prep, guest copy, overlay, and opencode attach phases instead of a silent pause.

Validated with GOCACHE=/tmp/banger-gocache go test ./..., make build, and a local payload comparison showing the banger repo dropping from a ~400 MB full bundle to a ~294 KB shallow metadata copy.
2026-03-22 19:45:26 -03:00
..
api Stamp shared build metadata into banger binaries 2026-03-22 17:14:06 -03:00
buildinfo Stamp shared build metadata into banger binaries 2026-03-22 17:14:06 -03:00
cli Speed up vm run repo import 2026-03-22 19:45:26 -03:00
config Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
daemon Sync Git identity into guest VMs 2026-03-22 19:30:36 -03:00
firecracker Add experimental Void guest workflow and vsock agent 2026-03-19 14:51:25 -03:00
guest Add repo-backed vm run command 2026-03-21 23:34:20 -03:00
guestconfig Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
guestnet Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00
hostnat Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
imagepreset Add an experimental Alpine image flow 2026-03-21 20:25:55 -03:00
model Show image names in vm list and raise default memory 2026-03-21 22:21:47 -03:00
namegen Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
opencode Wait for real guest vsock health before opencode 2026-03-21 21:14:22 -03:00
paths Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
policy Add vsock-backed VM port inspection 2026-03-19 15:52:11 -03:00
rpc Propagate RPC cancellation to daemon requests 2026-03-16 18:28:33 -03:00
store Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
system Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00
vmdns Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
vsockagent Add vsock-backed VM port inspection 2026-03-19 15:52:11 -03:00
webui Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00