mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
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:
parent
cb40e9682e
commit
b3f7535739
1 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ def install_environment(
|
||||||
with clean_path_on_failure(_envdir(prefix, version)):
|
with clean_path_on_failure(_envdir(prefix, version)):
|
||||||
with in_env(prefix, version):
|
with in_env(prefix, version):
|
||||||
helpers.run_setup_cmd(
|
helpers.run_setup_cmd(
|
||||||
prefix, ('cpan', '-T', '.', *additional_dependencies),
|
prefix, (
|
||||||
|
'cpan', '-T',
|
||||||
|
'-M', 'https://www.cpan.org,https://backpan.perl.org',
|
||||||
|
'.', *additional_dependencies,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue