docs: the upgrade flow speaks export now — the #79 reconciliation
The rebase onto merged #79, with the reconciliation both PRs' bodies promised: the installer's and the #66 refusals' "copy out by hand (a portable 'box export' is #70)" placeholders now name the real flow — down, export (one portable file per box), rm, switch, import. CI keeps main's versioned layout and uninstall drill, with the #70 round-trip step ordered before the uninstall (it needs a stack to prove state survives 'box rm'). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
2bbc53d1dd
commit
b077279850
2 changed files with 6 additions and 6 deletions
8
bin/box
8
bin/box
|
|
@ -560,8 +560,8 @@ EOF
|
|||
Switch the default box version — repoint the 'current' symlink (and the PATH
|
||||
symlink riding it) at an installed version. Refuses while ANY box exists:
|
||||
never change versions under a user's boxes (#66) — 'box down' what you keep,
|
||||
copy out what you need via 'box shell'/'box exec' (a portable 'box export'
|
||||
is #70), 'box rm' each box, then switch. The flip is asserted afterwards:
|
||||
'box export' what you keep (one
|
||||
portable file per box, #70), 'box rm' each box, then switch. The flip is asserted afterwards:
|
||||
current must resolve to the version you asked for, and the chain's
|
||||
'box --version' must answer it.
|
||||
|
||||
|
|
@ -1343,8 +1343,8 @@ die_under_boxes() { # $1 = the act being refused, $2 = the retry command
|
|||
echo "box: this host has existing boxes:"
|
||||
while IFS= read -r n; do echo "box: · $n"; done <<<"$names"
|
||||
echo "box: refusing to $1 under them (#66: never change versions under a user's boxes)."
|
||||
echo "box: preserve what you care about — 'box down <box>', copy out via 'box shell'/'box exec'"
|
||||
echo "box: (a portable 'box export' is #70) — then 'box rm <box>' each, and re-run: $2"
|
||||
echo "box: preserve what you care about — 'box down <box>', 'box export <box>' (one"
|
||||
echo "box: portable file per box, #70) — then 'box rm <box>' each, and re-run: $2"
|
||||
} >&2
|
||||
exit 1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,8 +268,8 @@ else
|
|||
while IFS= read -r n; do warn " · $n"; done <<<"$names"
|
||||
warn "refusing to change the default box version under them (#66) — the default stays at $old_ver."
|
||||
log "box $new_ver is installed side-by-side. To switch:"
|
||||
log " · preserve what you care about — 'box down <box>', copy out via 'box shell'/'box exec'"
|
||||
log " (a portable 'box export' is #70), then 'box rm <box>' when you are done"
|
||||
log " · preserve what you care about — 'box down <box>', 'box export <box>'"
|
||||
log " (one portable file per box, #70), then 'box rm <box>' when you are done"
|
||||
log " · then flip the default: box use $new_ver"
|
||||
else
|
||||
flip_current "$new_ver"
|
||||
|
|
|
|||
Loading…
Reference in a new issue