10000 imitate problem · akv-platform/setup-python@f3b1c01 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3b1c01

Browse files
committed
imitate problem
1 parent 821f7f4 commit f3b1c01

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

dist/setup/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66497,6 +66497,7 @@ function installPyPy(pypyVersion, pythonVersion, architecture, releases) {
6649766497
let downloadUrl = `${foundAsset.download_url}`;
6649866498
core.info(`Downloading PyPy from "${downloadUrl}" ...`);
6649966499
try {
66500+
throw new tc.HTTPError(403);
6650066501
const pypyPath = yield tc.downloadTool(downloadUrl);
6650166502
core.info('Extracting downloaded archive...');
6650266503
if (utils_1.IS_WINDOWS) {
@@ -66728,6 +66729,7 @@ function installCpythonFromRelease(release) {
6672866729
core.info(`Download from "${downloadUrl}"`);
6672966730
let pythonPath = '';
6673066731
try {
66732+
throw new tc.HTTPError(403);
6673166733
pythonPath = yield tc.downloadTool(downloadUrl, undefined, AUTH);
6673266734
core.info('Extract downloaded archive');
6673366735
let pythonExtractedFolder;

src/install-pypy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export async function installPyPy(
4949
core.info(`Downloading PyPy from "${downloadUrl}" ...`);
5050

5151
try {
52+
throw new tc.HTTPError(403)
5253
const pypyPath = await tc.downloadTool(downloadUrl);
5354

5455
core.info('Extracting downloaded archive...');

src/install-python.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export async function installCpythonFromRelease(release: tc.IToolRelease) {
7474
core.info(`Download from "${downloadUrl}"`);
7575
let pythonPath = '';
7676
try {
77+
throw new tc.HTTPError(403)
7778
pythonPath = await tc.downloadTool(downloadUrl, undefined, AUTH);
7879
core.info('Extract downloaded archive');
7980
let pythonExtractedFolder;

0 commit comments

Comments
 (0)
< 3084 /div>
0