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 b3f7535
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 b3f7535

Please sign in to comment.