Skip to content

Commit

Permalink
Pass explicit mirror list including BackPAN to cpan
Browse files Browse the repository at this point in the history
Gives out of the box ability to use dependencies that have been archived
to BackPAN.

Refs pre-commit#2134
  • Loading branch information
scop committed Nov 22, 2021
1 parent cb40e96 commit 92a8064
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pre_commit/languages/perl.py
Expand Up @@ -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,
),
)


Expand Down

0 comments on commit 92a8064

Please sign in to comment.