Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: List multiple versions in latest.txt. #123

Merged
merged 3 commits into from
Feb 23, 2025

Conversation

nasa42
Copy link
Owner

@nasa42 nasa42 commented Feb 23, 2025

At present, https://webterm.run/latest.txt lists only one version. The issue with that is this https://webterm.run/latest.txt starts showing the latest version as soon as the release PRs are merged, even before the release binaries are compiled and uploaded to GitHub releases.

This causes a small time window (after release PR is merged, and https://webterm.run/latest.txt shows the latest version, but before the latest version binaries are compiled and uploaded to GitHub releases) in which the install script would fail because it wouldn't be able to download the latest release.

This PR fixes this issue by listing multiple versions in https://webterm.run/latest.txt and updating the installation script to fallback to second latest version if latest version binaries are not found.

In addition, this PR also now automatically updates the frontend version to keep it in sync with crates' version.

Copy link

cloudflare-workers-and-pages bot commented Feb 23, 2025

Deploying webterm-run with  Cloudflare Pages  Cloudflare Pages

Latest commit: 04c0530
Status: ✅  Deploy successful!
Preview URL: https://03a060b7.webterm-run.pages.dev
Branch Preview URL: https://vik-latest-txt-multiple-vers.webterm-run.pages.dev

View logs

@nasa42 nasa42 changed the title feat: List multple versions in latest.txt. feat: List multiple versions in latest.txt. Feb 23, 2025
@nasa42 nasa42 merged commit 8b4cc16 into main Feb 23, 2025
8 checks passed
@nasa42 nasa42 deleted the vik-latest-txt-multiple-versions branch February 23, 2025 13:38
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