devloop

command
v0.0.0-...-acbe8ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package main runs `go build` on file changes and atomically swaps the running binary. Replaces `air` for the backend dev loop because air kills the running process before building, forcing a multi-second downtime window on every save. devloop builds first, then signals the old child to exit before starting the new one — the dead window is bounded by graceful shutdown, not by build time.

devloop is also the dev-time process supervisor: auxiliary children given via -proc (the dash0/status0 `bun run dev` servers) run as children of this foreground process and are reaped on shutdown, and every supervised stream (devloop's own lines, build output, each child's combined stdout/stderr) is mirrored to the terminal and to a size-rotated <name>.log under -log-dir.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL