[DAEMON-328] appcd-plugin: Registered plugins not sorted when retrieving status for semver range
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2020-02-13T22:57:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 4.0.0 |
Components | appcd-plugin |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2020-02-13T22:45:40.000+0000 |
Updated | 2020-03-31T20:12:18.000+0000 |
Description
When getting the status of a plugin where the version is a semver range, it will scan all plugins for a match by name and version. The order of the registered plugins is whichever order they were loaded. The list of plugins must be sorted in order to deterministically find the plugin.
If you have @appcd/plugin-titanium v1.6.0 and v1.8.1 installed, getting the status for
^1.6.0
should return v1.8.1.
appcd exec /appcd/plugin/status/@appcd/plugin-titanium/^1.6.0
PR: https://github.com/appcelerator/appc-daemon/pull/458