You've already forked setup-python
mirror of
https://github.com/actions/setup-python.git
synced 2025-11-23 23:26:45 +07:00
Fix lint check failure
This commit is contained in:
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -97919,7 +97919,7 @@ async function installPipPackages(pipInstall) {
|
|||||||
await (0, exec_1.exec)('python', ['-m', 'pip', 'install', ...installArgs]);
|
await (0, exec_1.exec)('python', ['-m', 'pip', 'install', ...installArgs]);
|
||||||
core.info('Successfully installed pip packages');
|
core.info('Successfully installed pip packages');
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch {
|
||||||
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
|
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ async function installPipPackages(pipInstall: string) {
|
|||||||
const installArgs = pipInstall.trim().split(/\s+/);
|
const installArgs = pipInstall.trim().split(/\s+/);
|
||||||
await exec('python', ['-m', 'pip', 'install', ...installArgs]);
|
await exec('python', ['-m', 'pip', 'install', ...installArgs]);
|
||||||
core.info('Successfully installed pip packages');
|
core.info('Successfully installed pip packages');
|
||||||
} catch (error) {
|
} catch {
|
||||||
core.setFailed(
|
core.setFailed(
|
||||||
`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
|
`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user