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

Adding plugin with remote dependencies to a cli project with multiple platforms yields warnings

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None

      Description

      Set up:

      $ cordova create tmp
      $ cd tmp
      $ cordova platform add ios android
      

      Then go to add a plugin with a remote dependency.

      What will happen is, in parallel, cordova-cli will invoke plugin.install, which in turn will invoke plugman.fetch, but it does so for each platform. So in parallel, plugman is attempting to fetch the same plugin twice and fetch it into the cli-generated project's plugins directory.

      This does not cause errors but there are a bunch of warning messages about files already existing.

      Perhaps we can make the cli aware of what's happening in this case and manually call fetch first, and only once, before invoking install for each platform.

        Attachments

          Activity

            People

            • Assignee:
              shepheb Braden Shepherdson
              Reporter:
              filmaj Filip Maj
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: