You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2015/10/13 02:47:05 UTC

[jira] [Resolved] (CB-9552) Updating linked platform removes original files

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

Shazron Abdullah resolved CB-9552.
----------------------------------
    Resolution: Fixed

> Updating linked platform removes original files
> -----------------------------------------------
>
>                 Key: CB-9552
>                 URL: https://issues.apache.org/jira/browse/CB-9552
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.5.0
>         Environment: iOS
>            Reporter: Tobias Bocanegra
>            Assignee: Simon MacDonald
>              Labels: cordova-ios-4.0.x
>
> updating a linked platform tries to remove the symlink, but the shell helper traverses into the link and wipes out the original source files.
> test:
> {noformat}
> $ cordova create link-test
> Creating a new cordova project.
> $ cd link-test/
> $ cordova platform add --link ../../cordova-ios
> Adding ios project...
> iOS project created with cordova-ios@4.0.0-dev and has a linked CordovaLib
> $ ll platforms/ios/
> total 8
> ...
> lrwxr-xr-x   1 tripod  staff  -   50B Aug 25 15:35 CordovaLib@ -> /Users/tripod/codez/cordova/cordova-ios/CordovaLib
> ...
> $ cordova platform update ios
> Updating ios project...
> rm: could not remove directory (code ENOTDIR): /Users/tripod/codez/cordova/test/link-test/platforms/ios/CordovaLib
> Error: /Users/tripod/.cordova/lib/npm_cache/cordova-ios/3.9.1/package/bin/update: Command failed with exit code 1
>     at ChildProcess.whenDone (/Users/tripod/codez/cordova/cordova-lib/cordova-lib/src/cordova/superspawn.js:139:23)
>     at ChildProcess.emit (events.js:110:17)
>     at maybeClose (child_process.js:1008:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
> $ ll platforms/ios/
> ...
> lrwxr-xr-x   1 tripod  staff  -   50B Aug 25 15:35 CordovaLib@ -> /Users/tripod/codez/cordova/cordova-ios/CordovaLib
> ...
> $ ll ../../cordova-ios/CordovaLib/
> total 0
> drwxr-xr-x   2 tripod  staff  -   68B Aug 25 15:35 ./
> drwxr-xr-x  23 tripod  staff  -  782B Aug 13 18:07 ../
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org