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

Issue using plugin restore for plugins with common dependencies

    XMLWordPrintableJSON

Details

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

    Description

      Running into an annoying kind of race condition similar to CB-9278 but for plugins. The issue comes up when you have multiple plugins being restored that have common dependencies.

      The way restore currently works it is adding all the plugins in config.xml at once. It does NOT wait for the first plugin and its dependencies to be installed before adding the next plugin in the config.xml. This can cause a plugin to be installed multiple times. You will get a message like the following in the console:

      Failed to install ‘cordova-plugin-inappbrowser':Error: Uh oh!

      "/Users/i827005/dev/source/odata-demo/platforms/ios/ODataDemo/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m" already exists!

      Attachments

        Activity

          People

            Unassigned Unassigned
            mpridham Marcus Pridham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: