You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2017/08/11 20:05:00 UTC

[jira] [Updated] (CB-13174) URL dependency not followed in plugin.xml

     [ https://issues.apache.org/jira/browse/CB-13174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Gill updated CB-13174:
----------------------------
    Labels: backlog tools-next  (was: )

> URL dependency not followed in plugin.xml
> -----------------------------------------
>
>                 Key: CB-13174
>                 URL: https://issues.apache.org/jira/browse/CB-13174
>             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="https://github.com/macdonst/cordova-plugin-compat-1" />
> ```
> 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="https://github.com/macdonst/cordova-plugin-compat-1" />
> ```
> 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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org