[carton] 394/472: Add notes on differernt Perl versions
Lucas Kanashiro
kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:39:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
kanashiro-guest pushed a commit to branch master
in repository carton.
commit d2b8bacff13dcb8224a95a5b140522d29e015594
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date: Wed Aug 7 11:58:57 2013 -0700
Add notes on differernt Perl versions
---
lib/Carton.pm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/lib/Carton.pm b/lib/Carton.pm
index 7b274e5..65c8801 100644
--- a/lib/Carton.pm
+++ b/lib/Carton.pm
@@ -113,6 +113,24 @@ C<--deployment> option, you can avoid querying for a database like
CPAN Meta DB or downloading files from CPAN mirrors upon deployment
time.
+=head1 PERL VERSIONS
+
+When you take a snapshot in one perl version and deploy on another
+(different) version, you might have troubles with core modules.
+
+The simples solution, which might not work for everybody, is to use
+the same version of perl in the development and deployment.
+
+To enforce that, you're recommended to use L<plenv> and
+C<.perl-version> to lock perl versions in development.
+
+You can also specify the minimum perl required in C<cpanfile>:
+
+ requires 'perl', '5.16.3';
+
+and carton (and cpanm) will give you errors when deployed on hosts
+with perl lower than the specified version.
+
=head1 COMMUNITY
=over 4
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git
More information about the Pkg-perl-cvs-commits
mailing list