cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Imhoff (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13847) `cordova platform add` overwrites existing version specs with caret ranges
Date Tue, 06 Feb 2018 20:32:00 GMT

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

Dan Imhoff commented on CB-13847:
---------------------------------

I realize this is what npm without `{{npm config set save-exact true}}`. Just wondering if
the Cordova team would be up for discussing solutions within the Cordova ecosystem. Perhaps
`cordova platform add` could simply use the version spec from config.xml if platform@version
is not used.

> `cordova platform add` overwrites existing version specs with caret ranges
> --------------------------------------------------------------------------
>
>                 Key: CB-13847
>                 URL: https://issues.apache.org/jira/browse/CB-13847
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova@7.0.0, cordova@8.0.0
>         Environment: Tested on macOS, but the problem is likely cross-platform.
>            Reporter: Dan Imhoff
>            Priority: Minor
>
> In a project without `platforms/` and `plugins/`, and an existing `<engine name="foo"
spec="...">` definition, `cordova platform add foo` ignores the engine version spec and
the plugin version specs as well, overwriting the existing entry with a caret version range.
> Original issue: https://github.com/ionic-team/ionic-cli/issues/2972



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message