You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Audrey So (JIRA)" <ji...@apache.org> on 2017/05/03 18:03:04 UTC

[jira] [Issue Comment Deleted] (CB-12757) Cordova@7 saves wrong spec in config.xml for git plugins

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

Audrey So updated CB-12757:
---------------------------
    Comment: was deleted

(was: Hi! I am trying to reproduce your issue. When you run:
{code} cordova plugin add cordova-plugin-ayogo-push@AyogoHealth/cordova-plugin-push {code}

In pkgJson, you get: --> 
{code}"plugins": {
            "cordova-plugin-ayogo-push": {}{code}
In config.xml, you get: -->
{code}<plugin name="cordova-plugin-ayogo-push" spec="~1.0.0" />{code}

Then I ran {code} cordova prepare {code}.

In pkgJson -->
{code}"plugins": {
            "cordova-plugin-ayogo-push": {},{code}

In config.xml -->
{code}<plugin name="cordova-plugin-ayogo-push" spec="github:ayogohealth/cordova-plugin-push" />{code}

Is this the same thing that you are seeing? Thank you!)

> Cordova@7 saves wrong spec in config.xml for git plugins
> --------------------------------------------------------
>
>                 Key: CB-12757
>                 URL: https://issues.apache.org/jira/browse/CB-12757
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>            Reporter: Darryl Pogue
>            Priority: Minor
>
> (This possibly existed in earlier versions, I never used on the {{--save}} flag so I'm not sure...)
> {code}
> cordova plugin add cordova-plugin-ayogo-push@AyogoHealth/cordova-plugin-push
> {code}
> It saves the github repo properly into package.json, but in config.xml it sets the spec to the version number. This will fail to restore (from config.xml) because the plugin isn't published to the npm registry.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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