[
https://issues.apache.org/jira/browse/CB-12606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943464#comment-15943464
]
ASF GitHub Bot commented on CB-12606:
-------------------------------------
GitHub user alsorokin opened a pull request:
https://github.com/apache/cordova-lib/pull/531
CB-12606 Fix plugin dependency installation
### Platforms affected
all
### What does this PR do?
Fixes a problem described here:
https://issues.apache.org/jira/browse/CB-12606
In short, cordova fails to cope with already installed plugin dependency,
if this dependency is of version with "-dev" suffix.
### What testing has been done on this change?
Manually tested on Windows with Android platform. Added an automated test.
### Checklist
- [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html)
in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform
affected.
- [x] Added automated test coverage as appropriate for this change.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alsorokin/cordova-lib CB-12606
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-lib/pull/531.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #531
----
----
> Cordova fails to install plugin dependency from url
> ---------------------------------------------------
>
> Key: CB-12606
> URL: https://issues.apache.org/jira/browse/CB-12606
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-lib
> Affects Versions: Master
> Environment: Windows 10, Node 4.5.0, npm 3.10.10
> Reporter: Alexander Sorokin
> Assignee: Alexander Sorokin
> Labels: found-by-ci, triaged
>
> When trying to install android platform on top of the plugin with the
> following line in its `plugin.xml`
> {noformat}
> <dependency id="cordova-plugin-device"
> url="https://github.com/apache/cordova-plugin-device" />
> {noformat}
> Getting the following error:
> {noformat}
> Installing "cordova-plugin-geolocation-tests" for ios
> Failed to install 'cordova-plugin-geolocation-tests': CordovaError: Version
> of installed plugin: "[email protected]" does not satisfy
> dependency plugin requirement "cordova-plugin-device@". Try --force to use
> installed plugin as dependency.
> at
> /Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/src/plugman/install.js:575:33
> at _fulfilled
> (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:787:54)
> at self.promiseDispatch.done
> (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:816:30)
> at Promise.promise.promiseDispatch
> (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:749:13)
> at
> /Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:509:49
> at flush
> (/Users/jenkins/jenkins/workspace/cordova-periodic-build/cordova-lib/cordova-lib/node_modules/q/q.js:108:17)
> at nextTickCallbackWith0Args (node.js:420:9)
> at process._tickCallback (node.js:349:13)
> Error: Version of installed plugin: "[email protected]" does
> not satisfy dependency plugin requirement "cordova-plugin-device@". Try
> --force to use installed plugin as dependency.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]