You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/02/04 04:32:10 UTC

[jira] [Commented] (CB-5947) cordova create fails when link/source arg = $CWD

    [ https://issues.apache.org/jira/browse/CB-5947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890335#comment-13890335 ] 

ASF subversion and git services commented on CB-5947:
-----------------------------------------------------

Commit d55087fd6c41da0db6a6ec097b24077d5f092dd2 in branch refs/heads/master from [~kamrik]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=d55087f ]

CB-5947 Throw when trying to create project inside custom www.

If a custom www dir is provided and is a parent or the same as the project dir,
cordova create fails while trying to create an infinite file hierarchy. Detect
this and exit with an error.


> cordova create fails when link/source arg = $CWD
> ------------------------------------------------
>
>                 Key: CB-5947
>                 URL: https://issues.apache.org/jira/browse/CB-5947
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.3.0, 3.4.0
>            Reporter: Ian Clelland
>            Assignee: Mark Koudritsky
>
> If {{cordova create}} is passed a {{--src}} or {{--link}} option whose argument is the current directory (or any parent of it, I suspect), then it will try to copy or link the current directory to {{newapp/www}}
> In the link case, this just creates a symlink cycle; in the copy case, it actually tries to recursively copy the directory inside itself. On OSX it eventually terminates with ENAMETOOLONG.
> In both cases, the project is broken and could never be used to build anything.
> We should detect this case and abort with an error condition.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)