8000 imitate problem pypy · actions/setup-python@44c9e5d · GitHub
[go: up one dir, main page]

Skip to content

Commit 44c9e5d

Browse files
committed
imitate problem pypy
1 parent 1f081fb commit 44c9e5d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/setup/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66489,13 +66489,15 @@ function installPyPy(pypyVersion, pythonVersion, architecture, releases) {
6648966489
if (!releases || releases.length === 0) {
6649066490
throw new Error('No release was found in PyPy version.json');
6649166491
}
66492-
const releaseData = findRelease(releases, pythonVersion, pypyVersion, architecture);
66492+
const releaseData = findRelease(releases, pythonVersion, pypyVersion, architecture) || { foundAsset: true, resolvedPythonVersion: "2", resolvedPyPyVersion: "3" };
6649366493
if (!releaseData || !releaseData.foundAsset) {
66494-
throw new Error(`PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`);
66494+
// throw new Error(
66495+
// `PyPy version ${pythonVersion} (${pypyVersion}) with arch ${architecture} not found`
66496+
//);
6649566497
}
6649666498
const { foundAsset, resolvedPythonVersion, resolvedPyPyVersion } = releaseData;
6649766499
let downloadUrl = `${foundAsset.download_url}`;
66498-
core.info(`Downloading PyPy from "${downloadUrl}" ... will throw`);
66500+
core.info(`Downloading PyPy from "${downloadUrl}" ...`);
6649966501
try {
6650066502
throw new tc.HTTPError(403);
6650166503
const pypyPath = yield tc.downloadTool(downloadUrl);

src/install-pypy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function installPyPy(
3535
pythonVersion,
3636
pypyVersion,
3737
architecture
38-
) || {foundAsset: true,resolvedPythonVersion: 2,resolvedPyPyVersion: 3};
38+
) || {foundAsset: true,resolvedPythonVersion: "2",resolvedPyPyVersion: "3"};
3939

4040
if (!releaseData || !releaseData.foundAsset) {
4141
// throw new Error(

0 commit comments

Comments
 (0)
0