Run migrations so state can be renamed #6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
bootstrap.sh restows and nothing else, so a second machine picks up
new code over old state and gets repaired by hand.
migrations/.sh, markers under
~/.local/state/donbox/migrations/, 'donbox migrate' running what is
pending, and bootstrap.sh calling it after the restow. Each
migration is idempotent, and its test runs it twice to prove it and
once against non-legacy state to prove it leaves customisation
alone.
migrations/.sh at the repository root, ignored by stow, markers under ~/.local/state/donbox/migrations, and "donbox migrate" running whatever this machine has not seen. bootstrap.sh calls it before the links are laid down, since it is what clears the old copies out of their way.
A migration that fails stops the run and records nothing, so nothing later builds on a half-move. Landed in
002021awith test/shell.d/migrate-test.sh over ordering, markers, failure and repair.