Skip to content

installer: replace init with version-aware router#285

Merged
micprog merged 5 commits into
masterfrom
fischeti/website
Jun 1, 2026
Merged

installer: replace init with version-aware router#285
micprog merged 5 commits into
masterfrom
fischeti/website

Conversation

@fischeti
Copy link
Copy Markdown
Contributor

@fischeti fischeti commented Mar 3, 2026

Rename the old init script to init-legacy (unchanged) and introduce a thin version-aware router as the new init entry point.

  • Versions >= 0.32.0 (first cargo-dist release) and latest are routed to the cargo-dist installer on GitHub Releases.
  • Older versions are delegated to init-legacy, preserving full backward compatibility including the sh -s -- VERSION interface.

TODO

  • Wait for Bender Book #295 to be merged
  • Move scripts into website folder on master
  • Remove website branch

@fischeti fischeti marked this pull request as ready for review March 3, 2026 22:08
Copy link
Copy Markdown
Member

@micprog micprog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand, this will work with the new flow in #282. I think once that is merged and a new release is made (0.32), we immediately merge this to ensure the script remains properly functional with latest.

Comment thread init Outdated
@fischeti
Copy link
Copy Markdown
Contributor Author

From what I understand, this will work with the new flow in #282. I think once that is merged and a new release is made (0.32), we immediately merge this to ensure the script remains properly functional with latest.

Yes, this is the best way to go I think

Copy link
Copy Markdown
Member

@micprog micprog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Merging when we do the 0.32 release

@fischeti fischeti mentioned this pull request Mar 30, 2026
7 tasks
@fischeti fischeti changed the base branch from website to master May 21, 2026 11:52
@fischeti
Copy link
Copy Markdown
Contributor Author

Rebased this to master now so the website branch can be removed after this is merged

@micprog
Copy link
Copy Markdown
Member

micprog commented May 22, 2026

@fischeti I updated the scripting to support the legacy flow and enable that as default, as well as enable global installs with a flag, including for legacy binaries. I haven't tested the script yet, but this well keep docs (e.g., worflows/ci) working. Let me know what you think!

fischeti and others added 5 commits June 1, 2026 14:58
Rename the old init script to init-legacy (unchanged) and introduce a
thin version-aware router as the new init entry point.

- Versions >= 0.31.0 (first cargo-dist release) and 'latest' are
  routed to the cargo-dist installer on GitHub Releases.
- Older versions are delegated to init-legacy, preserving full
  backward compatibility including the sh -s -- VERSION interface.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Flip the v0.32+ cargo-dist path to mirror legacy behavior by default
(binary in CWD, PATH untouched) and introduce a `global` keyword that
installs into $CARGO_HOME/bin — via cargo-dist's installer for v0.32+,
or by relocating the legacy script's output for older versions. Update
the installation guide and CI example accordingly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The legacy installer fallback was hardcoded to pulp-platform.github.io,
requiring fork-test setups to edit three places instead of one. Derive
the Pages base from $REPO via parameter expansion so retargeting the
script to a fork only requires updating the single $REPO variable.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…lags

Flip the v0.32+ default back to cargo-dist's natural global install
(into $CARGO_HOME/bin, PATH auto-updated), and replace the prior
`global` keyword with two universal flags:

  --local   forces current-directory install (no-op for pre-v0.32.0)
  --global  forces $CARGO_HOME/bin install (no-op for v0.32.0+)

The flags are mutually exclusive and let CI scripts pin a specific
install location across the v0.31 / v0.32 installer boundary. Update
the installation guide and CI example to demonstrate `--local`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@micprog micprog force-pushed the fischeti/website branch from 34c91fa to 015c0a1 Compare June 1, 2026 12:58
@fischeti
Copy link
Copy Markdown
Contributor Author

fischeti commented Jun 1, 2026

LGTM now with 015c0a1

@micprog micprog merged commit b176d58 into master Jun 1, 2026
25 of 26 checks passed
@micprog micprog deleted the fischeti/website branch June 1, 2026 15: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.

2 participants