cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <>
Subject [jira] [Commented] (CB-13174) URL dependency not followed in plugin.xml
Date Thu, 17 Aug 2017 22:16:00 GMT


jcesarmobile commented on CB-13174:

I think there is already an issue open about dependency installing latest version instead
of the version in the dependency, so might be related

> URL dependency not followed in plugin.xml
> -----------------------------------------
>                 Key: CB-13174
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova@7.0.0
>            Reporter: Simon MacDonald
>            Priority: Minor
>              Labels: backlog, tools-next
> I'm using CLI 7.0.1 and I've cloned a version of cordova-plugin-camera locally to do
the test.
> In my local copy of cordova-plugin-camera I modify the plugin.xml to change the dependency
tag to:
> ```
> <dependency id="cordova-plugin-compat" src=""
> ```
> Then I add the local copy of cordova-plugin-camera to my project via `cordova plugin
add ../cordova-plugin-camera`. When I list the plugins for the project I get:
> ```
> cordova-plugin-camera 2.4.2-dev "Camera"
> cordova-plugin-compat 1.1.0 "Compat"
> cordova-plugin-whitelist 1.3.2 "Whitelist"
> ```
> but I'm expecting Compat to be 1.2.0-dev which is what is in the repo I'm linking to
from dependencies.
> It seems like when the camera plugin is installed it reads the id of the dependent plugin
and installs it from npm instead of following the url.
> Switching to:
> ```
> <dependency id="cordova-plugin-fake-news" src=""
> ```
> causes cordova-plugin-camera to fail to install. Removing the id from the dependency
tag results in this error:
> Error: <dependency> tag is missing id attribute in /Users/smacdona/code/cordova/compattest/plugins/cordova-plugin-camera/plugin.xml
> Using --nofetch when trying to add the plugin has no effect.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message