fabro/lib/apps/fabro-cli
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
..
src Restore the single-model test table presentation 2026-11-03 10:42:04 -05:00
tests Stop rebuilding fabro-cli and fabro-server when the branch ref is packed 2026-11-13 00:03:37 +00:00
build.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
Cargo.toml Reuse cached GitHub installation tokens for run fetches and pushes 2026-10-01 13:01:13 -04:00