Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9.0
-
None
-
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.