You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mark Koudritsky (JIRA)" <ji...@apache.org> on 2014/08/07 22:07:13 UTC

[jira] [Resolved] (CB-7240) Cordova-cli breaking changes on master

     [ https://issues.apache.org/jira/browse/CB-7240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Koudritsky resolved CB-7240.
---------------------------------

    Resolution: Not a Problem

Hi Martin,
Thanks for reporting anyway.
The dep from cordova-cli on cordova-lib must be there in the released version so that `npm install -g cordova` will result in a working installation, so even if we remove it from master, we would need to re-add it each time for release and then remove back. That's doable but not sure it's worth it.

The dev community did discuss some version of the gitflow model but eventually settled on the simple model where development happens on master. It has some cons and pros.

> Cordova-cli breaking changes on master
> --------------------------------------
>
>                 Key: CB-7240
>                 URL: https://issues.apache.org/jira/browse/CB-7240
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, CordovaLib
>    Affects Versions: 3.6.0
>         Environment: Windows 7, 64 bit.
> NodeJS v0.10.28
>            Reporter: Martin Gonzalez
>              Labels: CLI, cordova-lib
>             Fix For: 3.6.0
>
>
> I have notice that the latest changes on cordova-cli master branch, are not working properly when --link-to is used for custom www resources.
> It throws a error on the module:
> cordova-cli\bin\cordova create test --link-to cordova-mobile-spec\www
> Creating a new cordova project with name "HelloCordova" and id "io.cordova.hello
> cordova" at location "C:\Users\Administrator\MobileSpecTests_New\test"
> Using custom www assets from undefined
> TypeError: Arguments to path.resolve must be strings
>     at Object.exports.resolve (path.js:116:15)
>     at Object.exports.relative (path.js:239:20)
>     at Object.create (C:\Users\Administrator\MobileSpecTests_New\cordova-cli\nod
> e_modules\cordova-lib\src\cordova\create.js:108:56)
>     at cli (C:\Users\Administrator\MobileSpecTests_New\cordova-cli\src\cli.js:23
> 8:21)
>     at Object.<anonymous> (C:\Users\Administrator\MobileSpecTests_New\cordova-cl
> i\bin\cordova:41:1)
>     at Module._compile (module.js:456:26)
>     at Object.Module._extensions..js (module.js:474:10)
>     at Module.load (module.js:356:32)
>     at Function.Module._load (module.js:312:12)
>     at Function.Module.runMain (module.js:497:10)
> The branch that is working properly is :rb_3.5.0-0.2.6, on that branch there's no problem at all, at least with --link-to.
> CLI on master branch is using "cordova-lib 21.6", as well as rb_3.5.0-0.2.6 branch, so the problem should in the CLI and not in the cordova-lib.



--
This message was sent by Atlassian JIRA
(v6.2#6252)