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 (or --yes) after an overview; --check prints the overview of a deploy and pulls nothing:

  • 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ยง

check_json ๐Ÿ”’
--check --json: every url: provider in the deploy, cloned or not. Unknown values are null.
execute
Entry point for rbnx update [-p <dir>] [-f <manifest>] [-y] [--check [--json]].
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 ๐Ÿ”’
Ask before pulling. Without a terminal nobody can answer, so refuse rather than read whatever stdin holds.
update_deploy ๐Ÿ”’
Update every outdated cloned url: provider in a deploy manifest.
update_single ๐Ÿ”’
Update a single package checkout (overview โ†’ confirm โ†’ fast-forward).
ๆต™ICPๅค‡2023005800ๅท-2 ๆต™ๅ…ฌ็ฝ‘ๅฎ‰ๅค‡33010902005384ๅท