@@ -65,7 +65,7 @@ sub new {
65
65
mirrors => [],
66
66
mirror_only => undef ,
67
67
mirror_index => undef ,
68
- cpanmetadb => " http ://cpanmetadb.plackperl.org/v1.0/" ,
68
+ cpanmetadb => " https ://cpanmetadb.plackperl.org/v1.0/" ,
69
69
perl => $^X,
70
70
argv => [],
71
71
local_lib => undef ,
@@ -616,7 +616,7 @@ Options:
616
616
--installdeps Only install dependencies
617
617
--showdeps Only display direct dependencies
618
618
--reinstall Reinstall the distribution even if you already have the latest version installed
619
- --mirror Specify the base URL for the mirror (e.g. http ://cpan.cpantesters.org/)
619
+ --mirror Specify the base URL for the mirror (e.g. https ://cpan.cpantesters.org/)
620
620
--mirror-only Use the mirror's index file instead of the CPAN Meta DB
621
621
-M,--from Use only this mirror base URL and its index file
622
622
--prompt Prompt when configure/build/test fails
@@ -636,18 +636,18 @@ Examples:
636
636
637
637
cpanm Test::More # install Test::More
638
638
cpanm MIYAGAWA/Plack-0.99_05.tar.gz # full distribution path
639
- cpanm http ://example.org/LDS/CGI.pm-3.20.tar.gz # install from URL
639
+ cpanm https ://example.org/LDS/CGI.pm-3.20.tar.gz # install from URL
640
640
cpanm ~/dists/MyCompany-Enterprise-1.00.tar.gz # install from a local file
641
641
cpanm --interactive Task::Kensho # Configure interactively
642
642
cpanm . # install from local directory
643
643
cpanm --installdeps . # install all the deps for the current directory
644
644
cpanm -L extlib Plack # install Plack and all non-core deps into extlib
645
- cpanm --mirror http ://cpan.cpantesters.org/ DBI # use the fast-syncing mirror
645
+ cpanm --mirror https ://cpan.cpantesters.org/ DBI # use the fast-syncing mirror
646
646
cpanm -M https://cpan.metacpan.org App::perlbrew # use only this secure mirror and its index
647
647
648
648
You can also specify the default options in PERL_CPANM_OPT environment variable in the shell rc:
649
649
650
- export PERL_CPANM_OPT="--prompt --reinstall -l ~/perl --mirror http ://cpan.cpantesters.org"
650
+ export PERL_CPANM_OPT="--prompt --reinstall -l ~/perl --mirror https ://cpan.cpantesters.org"
651
651
652
652
Type `man cpanm` or `perldoc cpanm` for the more detailed explanation of the options.
653
653
@@ -1163,7 +1163,7 @@ sub chdir {
1163
1163
sub configure_mirrors {
1164
1164
my $self = shift ;
1165
1165
unless (@{$self -> {mirrors }}) {
1166
- $self -> {mirrors } = [ ' http ://www.cpan.org' ];
1166
+ $self -> {mirrors } = [ ' https ://www.cpan.org' ];
1167
1167
}
1168
1168
for (@{$self -> {mirrors }}) {
1169
1169
s ! ^/! file:///! ;
@@ -1688,7 +1688,7 @@ sub cpan_dist {
1688
1688
sub git_uri {
1689
1689
my ($self , $uri ) = @_ ;
1690
1690
1691
- # similar to http ://www.pip-installer.org/en/latest/logic.html#vcs-support
1691
+ # similar to https ://www.pip-installer.org/en/latest/logic.html#vcs-support
1692
1692
# git URL has to end with .git when you need to use pin @ commit/tag/branch
1693
1693
1694
1694
($uri , my $commitish ) = split /(?<=\.git)@/i, $uri , 2;
@@ -2703,9 +2703,9 @@ sub configure_http {
2703
2703
unshift @try , ' Curl' if $self -> {try_curl };
2704
2704
unshift @try , ' LWP' if $self -> {try_lwp };
2705
2705
2706
- my @protocol = (' http ' );
2707
- push @protocol , ' https '
2708
- if grep /^https :/, @{$self -> {mirrors }};
2706
+ my @protocol = (' https ' );
2707
+ push @protocol , ' http '
2708
+ if grep /^http :/, @{$self -> {mirrors }};
2709
2709
2710
2710
my $backend ;
2711
2711
for my $try (map " HTTP::Tinyish::$_ " , @try ) {
0 commit comments