You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/07/12 00:15:49 UTC

[jira] [Created] (CB-4184) Adding plugin with remote dependencies to a cli project with multiple platforms yields warnings

Filip Maj created CB-4184:
-----------------------------

             Summary: 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: Filip Maj
            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