Skip to main content

Module update

Module update 

Source
Expand description

rbnx update โ€” pull remote (url:) providers to their latest upstream commit. Two modes, both gated on a y/N confirmation after an overview:

  • deploy dir (cwd has robonix_manifest.yaml, or -f <manifest>): update every cloned url: provider in that deploy.
  • package dir (-p <dir>, or cwd is itself a git checkout): update just that one repo.

Equivalent to a git pull (fast-forward) of each checkout. Diverged checkouts are reported and skipped, never force-reset.

Functionsยง

execute
Entry point for rbnx update [-p <dir>] [-f <manifest>].
fast_forward ๐Ÿ”’
Fast-forward dir to FETCH_HEAD. Returns Ok(false) when it cannot (diverged).
fetch ๐Ÿ”’
Fetch the remote branch tip into FETCH_HEAD (deepened so behind-counts work on the shallow clones boot creates). Returns false when fetch fails.
git ๐Ÿ”’
Run git in dir, returning trimmed stdout on success.
prompt_yes ๐Ÿ”’
update_deploy ๐Ÿ”’
Update every outdated cloned url: provider in a deploy manifest.
update_single ๐Ÿ”’
Update a single package checkout (overview โ†’ confirm โ†’ fast-forward).