Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5947

cordova create fails when link/source arg = $CWD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0, 3.4.0
    • None
    • cordova-cli
    • None

    Description

      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.

      Attachments

        Activity

          People

            kamrik Mark Koudritsky
            iclelland Ian Clelland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: