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

Marian Hello updated CB-13596:
------------------------------
    Description: 
if there is unscoped package with same name as scoped package, both will be 
installed.
As result you will end up with two (potentially conflicting) packages.

How to reproduce:
1. create new cordova project:
cordova create myApp org.apache.cordova.myApp myApp
2. add plaftofm
cordova platform add android
3. install scoped package:
cordova plugin add @mauron85/[email protected]
Expected Behavior
Only single package @mauron85/cordova-plugin-background-geolocation will be 
installed

Actual Behaviour
Two packages will get installed:
1. @mauron85/cordova-plugin-background-geolocation - 
https://www.npmjs.com/package/@mauron85/cordova-plugin-background-geolocation
2. cordova-plugin-background-geolocation - 
https://www.npmjs.com/package/cordova-plugin-background-geolocation
They are completely different and incompatible. As result cordova project won't 
compile.

Console output:
Installing "cordova-plugin-background-geolocation" for android
Installing "cordova-plugin-geolocation" for android
Installing "cordova-plugin-dialogs" for android
Adding @mauron85/cordova-plugin-background-geolocation to package.json
Saved plugin info for "@mauron85/cordova-plugin-background-geolocation" to 
config.xml

  was:
if there is unscoped package with same name as scoped package, both will be 
installed.
As result you will end up with two (potentially conflicting) packages.

How to reproduce:
1. create new cordova project:
cordova create myApp org.apache.cordova.myApp myApp
2. add plaftofm
cordova platform add android
3. install scoped package:
cordova plugin add @mauron85/[email protected]
Expected Behavior
Only single package @mauron85/cordova-plugin-background-geolocation will be 
installed
Actual Behaviour
Two packages will get installed:
1. @mauron85/cordova-plugin-background-geolocation - 
https://www.npmjs.com/package/@mauron85/cordova-plugin-background-geolocation
2. cordova-plugin-background-geolocation - 
https://www.npmjs.com/package/cordova-plugin-background-geolocation
They are completely different and incompatible. As result cordova project won't 
compile.
Console output:
Installing "cordova-plugin-background-geolocation" for android
Installing "cordova-plugin-geolocation" for android
Installing "cordova-plugin-dialogs" for android
Adding @mauron85/cordova-plugin-background-geolocation to package.json
Saved plugin info for "@mauron85/cordova-plugin-background-geolocation" to 
config.xml


> Installation of scoped plugin results also install conflicting unscoped 
> plugin with same name
> ---------------------------------------------------------------------------------------------
>
>                 Key: CB-13596
>                 URL: https://issues.apache.org/jira/browse/CB-13596
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: AllPlugins
>    Affects Versions: [email protected]
>            Reporter: Marian Hello
>
> if there is unscoped package with same name as scoped package, both will be 
> installed.
> As result you will end up with two (potentially conflicting) packages.
> How to reproduce:
> 1. create new cordova project:
> cordova create myApp org.apache.cordova.myApp myApp
> 2. add plaftofm
> cordova platform add android
> 3. install scoped package:
> cordova plugin add 
> @mauron85/[email protected]
> Expected Behavior
> Only single package @mauron85/cordova-plugin-background-geolocation will be 
> installed
> Actual Behaviour
> Two packages will get installed:
> 1. @mauron85/cordova-plugin-background-geolocation - 
> https://www.npmjs.com/package/@mauron85/cordova-plugin-background-geolocation
> 2. cordova-plugin-background-geolocation - 
> https://www.npmjs.com/package/cordova-plugin-background-geolocation
> They are completely different and incompatible. As result cordova project 
> won't compile.
> Console output:
> Installing "cordova-plugin-background-geolocation" for android
> Installing "cordova-plugin-geolocation" for android
> Installing "cordova-plugin-dialogs" for android
> Adding @mauron85/cordova-plugin-background-geolocation to package.json
> Saved plugin info for "@mauron85/cordova-plugin-background-geolocation" to 
> config.xml



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to