8000 Make repeated one-line installs idempotent by calebjohn24 · Pull Request #56 · calebjohn24/pablo · GitHub
[go: up one dir, main page]

Skip to content

Make repeated one-line installs idempotent - #56

Merged
calebjohn24 merged 1 commit into
mainfrom
fix/idempotent-installer
Sep 15, 2026
Merged

calebjohn24 merged 1 commit into
mainfrom
fix/idempotent-installer

Conversation

@calebjohn24
Copy link
Copy Markdown
Owner

Repeating the public one-line installer after a successful install currently exits with an “already exists” error. This change makes the argument-free network install a successful no-op only when the existing binary has a valid receipt for the same version and native target and still matches the receipt's SHA-256.

Changed, unowned, symlinked, different-version and different-target installations retain their existing refusal paths. Explicit --update still refuses the installed version, local archives are still verified, and --replace remains deliberate.

Validation:

  • sh -n install.sh
  • npm run test:release — 7 passed, including repeated argument-free piped install
  • cd website && npm test — 8 passed
  • piped updated script against the host's unchanged receipt-backed v0.0.1 installation
  • node scripts/project.mjs check
  • git diff --check

9085 @calebjohn24
calebjohn24 merged commit 94b0809 into main Sep 15, 2026
4 checks passed
@calebjohn24
calebjohn24 deleted the fix/idempotent-installer branch September 15, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0