zot/packages
patriceckhart 3ce114c8de feat(update): fast-forward installed extensions during zot update
After the binary swap succeeds, zot update now walks
$ZOT_HOME/extensions/ and runs git pull --ff-only on every
extension that is a git checkout.

Per-extension behaviour:
- disabled extensions: skipped
- no .git/ directory: skipped (no remote to pull from)
- dirty worktree: stashed (--include-untracked) before the pull,
  popped after; conflict on pop leaves markers in place with a
  warning rather than discarding the runtime state
- diverged / offline / any git failure: reported as failed and the
  next extension is processed
- timeout per extension: 60s
- no build step is ever executed; authors commit the runnable
  artifact, or the user rebuilds manually and /reload-ext

zot update itself never aborts because of an extension. The
binary swap is the source of truth for success.

Implementation in packages/agent/extupdate.go (~150 LoC), 13 unit
tests covering each branch including stash+pop with untracked
runtime files, diverged history, unreachable remote, and the
mixed-state scenario. README's Extensions section documents the
new behaviour.
2026-05-27 09:37:59 +02:00
..
agent feat(update): fast-forward installed extensions during zot update 2026-05-27 09:37:59 +02:00
core refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
provider refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00
tui refactor: split source into packages/{provider,core,tui,agent} 2026-05-27 09:07:15 +02:00