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: add "latest" as possible version #65

Merged
merged 2 commits into from
Jul 12, 2024
Merged

feat: add "latest" as possible version #65

merged 2 commits into from
Jul 12, 2024

Conversation

crowlKats
Copy link
Member

To bypass a circular need of having the latest version during release, this bypasses dotcom's versions.json and instead uses https://dl.deno.land/release-latest.txt

src/version.js Outdated
"Failed to fetch release version info from dl.deno.land. Please try again later.",
);
}
const version = (await res.text()).trim();
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we need to call version = semver.clean(version); like the below path. That seems stripping the leading v

Copy link
Member

Choose a reason for hiding this comment

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

Ah, probably we need to call semver.clean() to strip the leading v because v is prepended later here https://github.com/denoland/setup-deno/blob/main/src/install.js#L24

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, good catch. fixed.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@crowlKats crowlKats merged commit 2bca7ce into main Jul 12, 2024
17 checks passed
@crowlKats crowlKats deleted the latest-version branch July 12, 2024 11:35
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