It is and it is failing currently. In the file-transfer plugin [1]
<engine name="cordova-wp8" version=">=4.0.0"/>
...
Failed to install 'cordova-plugin-file-transfer':CordovaError: Plugin
doesn't support this project's cordova-wp8 version. cordova-wp8: 4.0.0-dev,
failed version requirement: 1.0.0
...
which fails in plugman install [2]

On closer inspection, this appears to be an issue with plugman, and not our
use of semver. I'll look more.


[1]
https://github.com/apache/cordova-plugin-file-transfer/blob/master/plugin.xml#L36
[2]
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/plugman/install.js#L108

@purplecabbage
risingj.com

On Wed, May 13, 2015 at 1:33 PM, Andrew Grieve <[email protected]> wrote:

> I think -dev is working fine and doing what it's supposed to do. The logic
> of -label is subtle:
>
> > var sem = require('semver')
> undefined
> > sem.satisfies('4.0.0-dev', '>=4.0.0')
> false
> > sem.satisfies('4.0.0-dev', '>=4.0')
> true
>
> So, the engine check should just to >=4.0, or >=4.0.0-dev
>
> On Wed, May 13, 2015 at 1:39 PM, So, Byoungro <[email protected]>
> wrote:
>
> > Sorry, I got the other way around. :)
> > 4.0.0-dev is > 4.0.0.
> >
> > Byoungro So
> > SSG / DPD / Mobile Computing and Compilers
> > Intel Corporation
> >
> > -----Original Message-----
> > From: So, Byoungro
> > Sent: Wednesday, May 13, 2015 10:37 AM
> > To: [email protected]
> > Subject: RE: [DISCUSS] Dropping the -dev suffix
> >
> > Semver should be able to understand '4.0.0-dev' as the valid version
> > string.
> > There could be some other requirement problems, like <=, >.
> > For example, 4.0.0-dev is < 4.0.0.
> > So, if the requirement is >=4.0.0, then the version string '4.0.0-dev'
> > will fail to satisfy the requirement.
> >
> > Byoungro So
> > SSG / DPD / Mobile Computing and Compilers Intel Corporation
> >
> > -----Original Message-----
> > From: Steven Gill [mailto:[email protected]]
> > Sent: Wednesday, May 13, 2015 10:21 AM
> > To: [email protected]
> > Subject: [DISCUSS] Dropping the -dev suffix
> >
> > Recently, a issue (CB-9021) popped up where mobile spec was failing
> > because the semver check failed on a platform due to `-dev` being in the
> > version and not valid.
> >
> > I think we should remove -dev from our versions. Right now, after we do a
> > release, we add -dev to show that the repo is in development and hasn't
> > been released. I think we can accomplish the same by just bumping the
> > version (minor?) in the package.json and just know it isn't released by
> > seeing what is published on npm.
> >
> > Thoughts?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to