perl-carton / carton

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

carton install --deployment causes some dependencies to be upgraded - but shuldn't #242

Open Nowaker opened 6 years ago

Nowaker commented 6 years ago
MAKEOPTS="-j5" carton install --deployment
 ---> Running in d1d2302e2098
Installing modules using /home/ndn/cpanfile (deployment mode)
Successfully installed Net-Statsd-0.12
...
Successfully installed Scalar-List-Utils-1.49 (upgraded from 1.41)

From README.md:

This will look at the cpanfile.snapshot and install the exact same versions of the dependencies into local, and now your application is ready to run.

The way I understand this, carton install --deployment would never upgrade any dependencies, and use the version indicated in the snapshot instead (this is also consistent with how Ruby's bundler would act in a such a situation). Only carton update <dependency name> would cause an upgrade of the dependency.

Software versions:

skaji commented 6 years ago

Could you show us your cpanfile and cpanfile.snapshot, and explain which modules are upgraded?