Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carton install --deployment doesn't update module #149

Open
NetPenguin opened this issue Oct 18, 2013 · 1 comment
Open

carton install --deployment doesn't update module #149

NetPenguin opened this issue Oct 18, 2013 · 1 comment

Comments

@NetPenguin
Copy link

A module is not updated even if the version of the installed module differs from description by cpanfile.snapshot.

reproduce
  1. conditions
$ carton --version
carton v1.0.12
$ cpanm --version
cpanm (App::cpanminus) version 1.7001 (/home/xxxx/.perlbrew/libs/perl-5.16.3@carton-1.0/bin/cpanm)
perl version 5.016003 (/home/xxxx/perl5/perlbrew/perls/perl-5.16.3/bin/perl)
    :
(snip)
    :
$ ls -la
total 12
drwxrwxr-x  2 xxxx xxxx 4096 Oct 18 11:42 .
drwxrwxr-x 35 xxxx xxxx 4096 Oct 11 12:38 ..
-rw-rw-r--  1 xxxx xxxx   30 Oct 18 11:41 cpanfile
$ cat cpanfile
requires 'Data::Util', '== 0.61';
$
  1. carton install
$ carton install
Installing modules using /home/xxxx/yyyy/cpanfile
Successfully installed Scope-Guard-0.20
Successfully installed Sub-Uplevel-0.24
Successfully installed Test-Exception-0.32
Successfully installed Test-use-ok-0.10
Successfully installed Hash-Util-FieldHash-Compat-0.03
Successfully installed Data-Util-0.61
6 distributions installed
Complete! Modules were installed into /home/xxxx/yyyy/local
$
  1. keep local/
$ cp -a local local-0.61
$
  1. modify cpanfile, and update cpanfile.snapshot
$ echo "requires 'Data::Util';" > cpanfile
$ carton update
Successfully installed Data-Util-0.62 (upgraded from 0.61)
1 distribution installed
$
  1. restore local/ from local-0.61/
$ rm -rf local
$ mv local-0.61 local
$
  1. check version
$ carton exec -- perl -E'use Data::Util; say $Data::Util::VERSION;'
0.61
$ cat cpanfile.snapshot
# carton snapshot format: version 1.0
DISTRIBUTIONS
  Data-Util-0.62
    pathname: G/GF/GFUJI/Data-Util-0.62.tar.gz
    provides:
      Data::Util 0.62
      Data::Util::Error undef
      Data::Util::PurePerl undef
    requirements:
      Devel::PPPort 3.19
      ExtUtils::MakeMaker 6.59
      ExtUtils::ParseXS 2.21
      Hash::Util::FieldHash::Compat 0
      Scope::Guard 0
      Test::Exception 0.27
      Test::More 0.62
      XSLoader 0.02
      perl 5.008001
  Hash-Util-FieldHash-Compat-0.03
    pathname: N/NU/NUFFIN/Hash-Util-FieldHash-Compat-0.03.tar.gz
    provides:
      Hash::Util::FieldHash::Compat 0.03
      Hash::Util::FieldHash::Compat::Destroyer undef
      Hash::Util::FieldHash::Compat::Tie::FieldHash undef
      Hash::Util::FieldHash::Compat::Tie::IdHash undef
    requirements:
      ExtUtils::MakeMaker 0
      Test::use::ok 0
  Scope-Guard-0.20
    pathname: C/CH/CHOCOLATE/Scope-Guard-0.20.tar.gz
    provides:
      Scope::Guard 0.20
    requirements:
      ExtUtils::MakeMaker 0
      Test::More 0
      perl 5.006001
  Sub-Uplevel-0.24
    pathname: D/DA/DAGOLDEN/Sub-Uplevel-0.24.tar.gz
    provides:
      Sub::Uplevel 0.24
    requirements:
      Carp 0
      Exporter 0
      ExtUtils::MakeMaker 6.30
      File::Find 0
      File::Temp 0
      Test::More 0
      constant 0
      strict 0
      warnings 0
  Test-Exception-0.32
    pathname: A/AD/ADIE/Test-Exception-0.32.tar.gz
    provides:
      Test::Exception 0.32
    requirements:
      Module::Build 0.38
      Sub::Uplevel 0.18
      Test::Builder 0.7
      Test::Builder::Tester 1.07
      Test::Harness 2.03
      Test::More 0.7
      Test::Simple 0.7
  Test-use-ok-0.11
    pathname: A/AU/AUDREYT/Test-use-ok-0.11.tar.gz
    provides:
      Test::use::ok 0.11
      ok 0.11
    requirements:
      ExtUtils::MakeMaker 6.36
      perl 5.005
$
  1. carton install --deployment
$ carton install --deployment
Installing modules using /home/xxxx/yyyy/cpanfile (deployment mode)
Complete! Modules were installed into /home/xxxx/yyyy/local
$
  1. check version
$ carton exec -- perl -E'use Data::Util; say $Data::Util::VERSION;'
0.61
$
@miyagawa
Copy link
Contributor

Thanks for the report. Probably the same as #108.

JRaspass added a commit to cv-library/carton that referenced this issue May 9, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
JRaspass added a commit to cv-library/carton that referenced this issue May 9, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
JRaspass added a commit to cv-library/carton that referenced this issue May 10, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
JRaspass added a commit to cv-library/carton that referenced this issue May 10, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
JRaspass added a commit to cv-library/carton that referenced this issue May 10, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
JRaspass added a commit to cv-library/carton that referenced this issue May 10, 2016
This is a fix for perl-carton#149

It can probably be done a lot saner, this is more a PoC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants