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

cordova create fails when link/source arg = $CWD

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0, 3.4.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: