Skip to content

installer: replace init with version-aware router#285

Open
fischeti wants to merge 2 commits intowebsitefrom
fischeti/website
Open

installer: replace init with version-aware router#285
fischeti wants to merge 2 commits intowebsitefrom
fischeti/website

Conversation

@fischeti
Copy link
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.

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>
@fischeti fischeti marked this pull request as ready for review March 3, 2026 22:08
Copy link
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.

@fischeti
Copy link
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

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