summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiko Miyagawa <miyagawa@bulknews.net>2018-04-22 13:15:23 +0200
committerTatsuhiko Miyagawa <miyagawa@bulknews.net>2018-04-22 13:15:23 +0200
commitb83bc2a22315c35fcd124e1ca649b633738cc9ac (patch)
tree9bdd5d089321d757783de6b2bcccc10e7e74208a
parentb86f52018bf61843ec10fb5680b14070ee294ca0 (diff)
downloadcarton-b83bc2a22315c35fcd124e1ca649b633738cc9ac.tar.gz
document dist, url and mirror
-rw-r--r--lib/Carton.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Carton.pm b/lib/Carton.pm
index 830f568..e7d03e8 100644
--- a/lib/Carton.pm
+++ b/lib/Carton.pm
@@ -83,6 +83,24 @@ the modules you just installed.
> git add cpanfile cpanfile.snapshot
> git commit -m "Added Plack and Starman"
+=head2 Specifying a CPAN distribution
+
+You can pin a module resolution to a specific distribution using a
+combination of C<dist>, C<mirror> and C<url> options in C<cpanfile>.
+
+ # specific distribution on PAUSE
+ requires 'Plack', '0.9980',
+ dist => 'MIYAGAWA/Plack-0.9980.tar.gz';
+
+ # local mirror (darkpan)
+ requires 'Plack', '0.9981',
+ dist => 'MYCOMPANY/Plack-0.9981-p1.tar.gz',
+ mirror => 'https://pause.local/';
+
+ # URL
+ requires 'Plack', '1.1000',
+ url => 'https://pause.local/authors/id/M/MY/MYCOMPANY/Plack-1.1000.tar.gz';
+
=head2 Deploying your application
Once you've done installing all the dependencies, you can push your