Skip to content

feat: add "latest" as possible version#65

Merged
crowlKats merged 2 commits intomainfrom
latest-version
Jul 12, 2024
Merged

feat: add "latest" as possible version#65
crowlKats merged 2 commits intomainfrom
latest-version

Conversation

@crowlKats
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

@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
@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