mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 21:21:32 +00:00
* feat(scripts): reference update script for source-checkout gateway servers Teams running a gateway from a git checkout kept re-deriving the same update ritual by hand: restore the tracked bundle pnpm build rewrites, fail closed on real local changes, fast-forward main or rebase a local server branch, install deps, build clean (incremental builds have shipped stale hashed chunks), restart the service. update-gateway.sh encodes that as the documented reference; simple installs keep using openclaw update --channel dev. * fix(scripts): harden update-gateway guards and refresh docs map Review findings: never run over a pre-existing rebase/merge/cherry-pick (the abort path could discard operator progress), and treat untracked files honestly — fail closed only where the clean build would delete them, warn-list elsewhere. Regenerate docs_map for the new updating.md section. * fix(scripts): pipefail-safe warnings and honest disposable-dir policy Review findings: head-truncating a long warning list through a pipe dies under pipefail (SIGPIPE) in the warning path, so truncate via here-strings; the untracked-under-build-dirs guard was theater since ignored files bypassed it — declare dist/dist-runtime/.artifacts as wholly disposable instead and say so; note the rm targets are symlink-safe (no trailing slashes). * fix(scripts): order guards before mutations and refuse symlinked build dirs Review round: the in-progress-operation guard now precedes the bundle restore (the script's first mutation), symlinked build dirs are refused before the recursive clean (intermediate symlink resolution would redirect the delete outside the checkout), and the untracked-files note no longer overpromises — kept files can affect the build and the message says so. * fix(scripts): preserve merge commits when rebasing the server branch Plain git rebase flattens merges, silently dropping merge-only conflict resolutions from a local server branch; --rebase-merges keeps them.
4.4 KiB
Executable File
4.4 KiB
Executable File