[
https://issues.apache.org/jira/browse/CB-4184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759166#comment-13759166
]
ASF subversion and git services commented on CB-4184:
-----------------------------------------------------
Commit 1d6e3b3181af6cbac00b0fe055759feb4f39258b in branch refs/heads/master
from [~shepheb]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=1d6e3b3 ]
[CB-4184]: Install plugins to platforms serially, not in parallel.
This prevents plugman stepping on itself while installing dependencies
across platforms.
> Adding plugin with remote dependencies to a cli project with multiple
> platforms yields warnings
> -----------------------------------------------------------------------------------------------
>
> Key: CB-4184
> URL: https://issues.apache.org/jira/browse/CB-4184
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.9.0
> Reporter: Filip Maj
> Assignee: Braden Shepherdson
> Priority: Minor
>
> Set up:
> {noformat}
> $ cordova create tmp
> $ cd tmp
> $ cordova platform add ios android
> {noformat}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira