perl-carton / carton

Bundler or pip freeze for Perl
http://search.cpan.org/dist/carton
Other
494 stars 96 forks source link

In cpanfile.snapshot, MailTools always records the desired version AND the latest version, fails carton install --deployment #274

Open minusdavid opened 3 years ago

minusdavid commented 3 years ago

If you specify Mail::Mailer in your cpanfile with a specific version, Carton will record MailTools with your specific version and it will also record the latest version, which causes "carton install --deployment" to fail.

minusdavid commented 3 years ago

Note that you can't specify MailTools or else the following occurs:

! Couldn't find module or a distribution MailTools (== 2.04)

minusdavid commented 3 years ago

MailTools-2.04 pathname: M/MA/MARKOV/MailTools-2.04.tar.gz provides: Mail undef Mail::Address 2.04 Mail::Cap 2.04 Mail::Field 2.04 Mail::Field::AddrList 2.04 Mail::Field::Date 2.04 Mail::Field::Generic 2.04 Mail::Filter 2.04 Mail::Header 2.04 Mail::Internet 2.04 Mail::Mailer 2.04 Mail::Mailer::qmail 2.04 Mail::Mailer::rfc822 2.04 Mail::Mailer::sendmail 2.04 Mail::Mailer::smtp 2.04 Mail::Mailer::smtp::pipe 2.04 Mail::Mailer::testfile 2.04 Mail::Mailer::testfile::pipe 2.04 Mail::Send 2.04 Mail::Util 2.04 requirements: Date::Format 0 Date::Parse 0 ExtUtils::MakeMaker 0 IO::Handle 0 Net::Domain 1.05 Net::SMTP 1.03 Test::More 0 Test::Pod 1

MailTools-2.21 pathname: M/MA/MARKOV/MailTools-2.21.tar.gz provides: Mail::Address 2.21 Mail::Cap 2.21 Mail::Field 2.21 Mail::Field::AddrList 2.21 Mail::Field::Date 2.21 Mail::Field::Generic 2.21 Mail::Filter 2.21 Mail::Header 2.21 Mail::Internet 2.21 Mail::Mailer 2.21 Mail::Mailer::qmail 2.21 Mail::Mailer::rfc822 2.21 Mail::Mailer::sendmail 2.21 Mail::Mailer::smtp 2.21 Mail::Mailer::smtp::pipe 2.21 Mail::Mailer::smtps 2.21 Mail::Mailer::smtps::pipe 2.21 Mail::Mailer::testfile 2.21 Mail::Mailer::testfile::pipe 2.21 Mail::Send 2.21 Mail::Util 2.21 MailTools 2.21 requirements: Date::Format 0 Date::Parse 0 ExtUtils::MakeMaker 0 IO::Handle 0 Net::Domain 1.05 Net::SMTP 1.03 Test::More 0

minusdavid commented 3 years ago

If I manually edit the cpanfile.snapshot and remove MailTools 2.21, it will be re-added when I run the following:

carton install Installing modules using /path/to/cpanfile Complete! Modules were installed into /path/to/local

minusdavid commented 3 years ago

carton v1.0.34

minusdavid commented 3 years ago

This is pretty annoying. Fortunately, it's not a hugely important component, so I'll just try using MailTools 2.21 and see how I go...

brunoramoslu commented 1 year ago

Cannot reproduce this locally (Ubuntu+Perl 5.36.0) with carton v1.0.35.