Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13847

`cordova platform add` overwrites existing version specs with caret ranges

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: cordova@7.0.0, cordova@8.0.0
    • Fix Version/s: None
    • Component/s: cordova-cli
    • Labels:
      None
    • Environment:

      Tested on macOS, but the problem is likely cross-platform.

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dwieeb Dan Imhoff
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: