cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Santana <csantan...@gmail.com>
Subject Re: [Vote] 3.6.3 Cadence Release
Date Tue, 16 Sep 2014 02:59:36 GMT
Marcel apache git [1] neither github git [2] for cordova-cli repo has
cordova-lib pointing to 0.21.11
Both have in package.json "cordova-lib"
: "0.21.10",

[1]:
https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;a=blob;f=package.json;h=ae85efe323640efa48c769ecf0cc42fd634dff78;hb=HEAD#l31
[2]: https://github.com/apache/cordova-cli/blob/master/package.json#L31

The strange thing is that when I do "npm view cordova@3.6.3-0.2.11 | grep
cordova-lib"

$ npm view cordova@3.6.3-0.2.11 | grep cordova-lib

   { 'cordova-lib': '0.21.11',

This means that the package.json use when doing "npm plublish" is not the
one located in git tree

Finally the reason that when doing "npm install -g cordova@3.6.3-0.2.11" is
not installing cordova-lib@0.2.11 and is installing the old version 9.2.10
is because of npm-shrinkwrap.json inside cordova-cli

the npm-shrinkwrap.json was not updated and the old cordova@3.6.3-0.2.10
was included, so check out /Users/marcelk/.nvm/v0.10.31/
lib/node_modules/cordova/npm-shrinkwrap.json

It points to cordova-lib@0.21.10

(master)$ cat
/Users/csantana23/.nvm/v0.10.30/lib/node_modules/cordova/npm-shrinkwrap.json

{

  "name": "cordova",

  "version": "3.6.1-0.2.10",

  "dependencies": {

    "cordova-lib": {

      *"version": "0.21.10",*




On Mon, Sep 15, 2014 at 10:02 PM, Marcel Kinard <cmarcelk@gmail.com> wrote:

> I published the packages to the npm registry with the "rc" tag (not the
> "latest" tag). So now when I do "npm -g install cordova@rc" I expect it
> to also pull down the latest cordova-lib (0.21.11). But it is pulling down
> the old one (0.21.10) instead. This causes the bad shasums from 3.6.1 to be
> referenced. Any ideas on why this is happening? I'm about stumped. The
> reference to the cordova-lib version in cordova-cli's package.json
> dependency list does not have a tilde or caret or "x".
>
> marcelk-macbook:apache marcelk$ npm -g install cordova@rc
> /Users/marcelk/.nvm/v0.10.31/bin/cordova ->
> /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/bin/cordova
> cordova@3.6.3-0.2.11 /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova
> ├── q@0.9.7
> ├── underscore@1.4.4
> ├── nopt@2.2.1 (abbrev@1.0.5)
> └── cordova-lib@0.21.10 (osenv@0.0.3, properties-parser@0.2.3,
> bplist-parser@0.0.5, mime@1.2.11, semver@2.0.11, unorm@1.3.3,
> shelljs@0.1.4, temp@0.6.0, glob@3.2.11, dep-graph@1.1.0, npmconf@0.1.16,
> rc@0.3.0, xcode@0.6.7, tar@0.1.20, elementtree@0.1.5, request@2.22.0,
> jasmine-node@1.14.5, jshint@2.5.5, plist@1.0.1, npm@1.3.4,
> cordova-js@3.6.3)
>
> marcelk-macbook:cordova marcelk$ grep '"cordova-lib"'
> /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/package.json
>     "cordova-lib": "0.21.11",
> marcelk-macbook:cordova marcelk$ grep version
> /Users/marcelk/.nvm/v0.10.31/lib/node_modules/cordova/node_modules/cordova-lib/package.json
>   "version": "0.21.10",




-- 
Carlos Santana
<csantana23@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message