Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

'v' prefixed module versions don't deploy #48

Closed
wki opened this Issue · 3 comments

2 participants

@wki

If a module's version is prefixed with 'v', eg. DBD::Pg, MooseX::Attribute::Chained, the initial install works. However, a later install for a deployment fails. cpanm does not recognize the given Module spec like "DBD::Pg~v2.19.2". If the spec were "DBD::Pg~2.19.2" it would work.

@miyagawa
Owner

nevermind, i got it reproduced.

@wki

sorry for not inserting the full log. After looking into carton's internals, I was wondering why you are using the spec strings consisting of Module Name and version number joined with a tilde. Could pathname (like "T/TY/TYEMQ/Algorithm-Diff-1.1902.tar.gz") do the job without having to care about version strings?

@miyagawa
Owner

Because that's not how CPAN clients figure out dependencies. Because Carton relies on cpanminus to resolve dependencies (at least for now) we have to use module and versions, then map them into pathname in 02packages.txt file internally (inside .carton directory)

@miyagawa miyagawa closed this in 33af4ce
@jperkin jperkin referenced this issue from a commit in joyent/pkgsrc
wen Update to 1.5017
Based on PR pkg/46549 by Wen Heping(myself)

Upstream changes:
1.5017 Wed Jul 18 08:28:49 PDT 2012
   [Improvements]
      - Ignore tarballs whose first entry is "./" (doy) #184

1.5016 Tue Jul 17 12:00:57 PDT 2012
   [Improvements]
      - Added Module/CPANfile.pm to the fatlib. This allows bootstrapping dependencies
        with cpanm --installdeps on Heroku etc.

1.5015 Sun Jun 24 15:34:57 PDT 2012
   [Improvements]
      - Improved Makefile.PL to include bugtracker info (Ben Bullock)
      - Fixed some merge mess with devel

1.5014 Tue Jun 12 18:27:02 PDT 2012
   [Improvements]
      - Make sure 'f' flag becomes the last for some tar versions (mst, aaronsw)
      - Fixed warnings on perl 5.17+ (rjbs)
      - Fix local::lib error message (berekuk)

1.5013 Sat May 12 06:15:44 EEST 2012
   [Bug Fixes]
      - Fixed --cascade-search to seach for missing modules, which was broken by #150

1.5012 Fri May 11 05:47:56 CEST 2012
   [Improvements]
      - Change the behavior of --mirror-index so that it won't fallback to CPAN mirrors #150 (thaljef)
      - Support v-strings in versions specified install [perl-carton/carton#48]

1.5011 Thu Apr 12 18:57:06 JST 2012
   [Improvements]
      - Point default mirror to www.cpan.org #148

1.5010 Sat Mar 31 12:59:52 CEST 2012
   [New Feature]
      - Implemented --test-only option #40

1.5009 Fri Mar 30 18:44:12 CEST 2012
   [Bug Fixes]
      - Fixed a bug where URL containing ~ (childe) fails to install #134
      - Fixed a bug where install.json contains bogus data when you specify dist paths

1.5008 Sat Mar 17 18:19:57 PDT 2012
   [Bug Fixes]
      - Fied a bug where `cpanm Foo` doesn't properly activate local::lib during installs
        when you don't have write permissions #143 (goodel, ash)
      - Improved the warning message when you don't have write permisisons #145 (ash)
87388b5
@charsbar charsbar referenced this issue from a commit in charsbar/cpanminus
@miyagawa miyagawa Checking in changes prior to tagging of version 1.5012.
Changelog diff is:

diff --git a/Changes b/Changes
index cbe2ffb..e475125 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 See http://github.com/miyagawa/cpanminus/ for the latest development.

+1.5012 Fri May 11 05:47:56 CEST 2012
+   [Improvements]
+      - Change the behavior of --mirror-index so that it won't fallback to CPAN mirrors #150 (thaljef)
+      - Support v-strings in versions specified install [perl-carton/carton#48]
+
 1.5011 Thu Apr 12 18:57:06 JST 2012
    [Improvements]
       - Point default mirror to www.cpan.org #148
7e079af
@jsonn jsonn referenced this issue from a commit in jsonn/pkgsrc
wen Update to 1.5017
Based on PR pkg/46549 by Wen Heping(myself)

Upstream changes:
1.5017 Wed Jul 18 08:28:49 PDT 2012
   [Improvements]
      - Ignore tarballs whose first entry is "./" (doy) #184

1.5016 Tue Jul 17 12:00:57 PDT 2012
   [Improvements]
      - Added Module/CPANfile.pm to the fatlib. This allows bootstrapping dependencies
        with cpanm --installdeps on Heroku etc.

1.5015 Sun Jun 24 15:34:57 PDT 2012
   [Improvements]
      - Improved Makefile.PL to include bugtracker info (Ben Bullock)
      - Fixed some merge mess with devel

1.5014 Tue Jun 12 18:27:02 PDT 2012
   [Improvements]
      - Make sure 'f' flag becomes the last for some tar versions (mst, aaronsw)
      - Fixed warnings on perl 5.17+ (rjbs)
      - Fix local::lib error message (berekuk)

1.5013 Sat May 12 06:15:44 EEST 2012
   [Bug Fixes]
      - Fixed --cascade-search to seach for missing modules, which was broken by #150

1.5012 Fri May 11 05:47:56 CEST 2012
   [Improvements]
      - Change the behavior of --mirror-index so that it won't fallback to CPAN mirrors #150 (thaljef)
      - Support v-strings in versions specified install [perl-carton/carton#48]

1.5011 Thu Apr 12 18:57:06 JST 2012
   [Improvements]
      - Point default mirror to www.cpan.org #148

1.5010 Sat Mar 31 12:59:52 CEST 2012
   [New Feature]
      - Implemented --test-only option #40

1.5009 Fri Mar 30 18:44:12 CEST 2012
   [Bug Fixes]
      - Fixed a bug where URL containing ~ (childe) fails to install #134
      - Fixed a bug where install.json contains bogus data when you specify dist paths

1.5008 Sat Mar 17 18:19:57 PDT 2012
   [Bug Fixes]
      - Fied a bug where `cpanm Foo` doesn't properly activate local::lib during installs
        when you don't have write permissions #143 (goodel, ash)
      - Improved the warning message when you don't have write permisisons #145 (ash)
ad5edfe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.