fabro/lib/foundation
Amp b550b79db5
Stop rebuilding fabro-cli and fabro-server when the branch ref is packed
Both build scripts watch the current branch's loose ref file so the
embedded Git SHA follows new commits. A packed ref has no loose file, and
Cargo treats a missing rerun-if-changed path as always stale, so both
crates recompiled on every build. A fresh clone packs its refs, which is
the state of every Amp orb and CI checkout.

When the loose ref is missing, watch the nearest existing directory
instead (usually .git/refs/heads). The branch's next commit writes its
loose ref there, so the SHA still updates. While the ref stays packed, a
commit on another local branch reruns the two build scripts once.

A no-op `cargo nextest run --workspace --no-run` drops from 17.4s to 0.5s.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d1cb-9abf-76aa-be86-d84487f672e7
Co-authored-by: Scott Werner <scott@lithos.computer>
2026-11-13 00:03:37 +00:00
..
build-support Stop rebuilding fabro-cli and fabro-server when the branch ref is packed 2026-11-13 00:03:37 +00:00
fabro-api Return lithos-llm probe reports from model tests 2026-11-02 17:09:41 -05:00
fabro-auth Scope run model clients with session headers 2026-10-14 12:44:52 -04:00
fabro-client Return lithos-llm probe reports from model tests 2026-11-02 17:09:41 -05:00
fabro-config Serialize generated provider overlays with the TOML library 2026-10-23 14:38:46 -04:00
fabro-db Drop the run_events table and narrow the runs row 2026-09-18 14:37:18 -04:00
fabro-dev Fix the Mintlify docs deployment 2026-09-28 17:26:49 -04:00
fabro-http Depend on lithos-llm and the published twin-openai crate 2026-09-09 17:26:57 -06:00
fabro-macros refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
fabro-oauth refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
fabro-options-metadata refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
fabro-proc Simplify the store-fault handling 2026-10-06 16:07:36 -04:00
fabro-redact Exempt ULIDs from entropy-based secret redaction 2026-10-20 14:51:14 -04:00
fabro-static refactor: tidy the in-process sandbox provider wiring 2026-09-25 11:29:29 -04:00
fabro-telemetry refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
fabro-template Read workflow graphs through Petri's DOT parser 2026-09-19 12:23:57 -04:00
fabro-test fix(cli): show the source branch in the Base header 2026-10-28 10:29:12 -04:00
fabro-types Explain artifact size-limit omissions with durable notices 2026-11-02 17:06:17 -05:00
fabro-util Resume a Petri run whose store failed, as after a crash 2026-10-06 12:29:34 -04:00
fabro-vault refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00