mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-06-27 06:49:19 +00:00
Do not warn when version not in manifest-file (#462)
This will spam the GitHub summary with warnings as soon as a new version is released and no new setup-uv version containing this version in the distributed manifest-file is released Closes: #461
This commit is contained in:
parent
c6a5ebaafe
commit
bd01e18f51
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
@ -124726,7 +124726,7 @@ async function downloadVersionFromGithub(serverUrl, platform, arch, version, che
|
||||
async function downloadVersionFromManifest(manifestUrl, platform, arch, version, checkSum, githubToken) {
|
||||
const downloadUrl = await (0, version_manifest_1.getDownloadUrl)(manifestUrl, version, arch, platform);
|
||||
if (!downloadUrl) {
|
||||
core.warning(`manifest-file does not contain version ${version}, arch ${arch}, platform ${platform}. Falling back to GitHub releases.`);
|
||||
core.info(`manifest-file does not contain version ${version}, arch ${arch}, platform ${platform}. Falling back to GitHub releases.`);
|
||||
return await downloadVersionFromGithub("https://github.com", platform, arch, version, checkSum, githubToken);
|
||||
}
|
||||
return await downloadVersion(downloadUrl, `uv-${arch}-${platform}`, platform, arch, version, checkSum, githubToken);
|
||||
|
@ -64,7 +64,7 @@ export async function downloadVersionFromManifest(
|
||||
platform,
|
||||
);
|
||||
if (!downloadUrl) {
|
||||
core.warning(
|
||||
core.info(
|
||||
`manifest-file does not contain version ${version}, arch ${arch}, platform ${platform}. Falling back to GitHub releases.`,
|
||||
);
|
||||
return await downloadVersionFromGithub(
|
||||
|
Loading…
x
Reference in New Issue
Block a user