cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Audrey So (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-12757) Cordova@7 saves wrong spec in config.xml for git plugins
Date Wed, 03 May 2017 17:44:04 GMT

    [ https://issues.apache.org/jira/browse/CB-12757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995298#comment-15995298
] 

Audrey So edited comment on CB-12757 at 5/3/17 5:43 PM:
--------------------------------------------------------

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!


was (Author: auso):
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: --> 
```"plugins": {
            "cordova-plugin-ayogo-push": {}```
In config.xml, you get: -->
```<plugin name="cordova-plugin-ayogo-push" spec="~1.0.0" />```

Then I ran ```cordova prepare```.

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

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

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


Mime
View raw message