Pass explicit mirror list including BackPan to cpan

Gives out of the box ability to use dependencies that have been archived
to BackPan.

Refs https://github.com/pre-commit/pre-commit/pull/2134
This commit is contained in:
Ville Skyttä 2021-11-22 22:36:12 +02:00
parent cb40e9682e
commit b3f7535739

View file

@ -54,7 +54,11 @@ def install_environment(
with clean_path_on_failure(_envdir(prefix, version)):
with in_env(prefix, version):
helpers.run_setup_cmd(
prefix, ('cpan', '-T', '.', *additional_dependencies),
prefix, (
'cpan', '-T',
'-M', 'https://www.cpan.org,https://backpan.perl.org',
'.', *additional_dependencies,
),
)