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

`cordova platform add <platform>@<version>` not working for Git based installs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • None
    • cordova-cli
    • None

    Description

      Currently the cordova platform add <platform>@<version> is only working with the --usenpm option enabled.

      I think --usenpm is disabled by default (?) so this feature will appear broken to most users. I've pinpointed the problem to this peace of code where for the cordova_git function the @version check is missing, resulting in a "Platform not recognized" error when the platform includes a version code.

      I hope I can find some time to sign the ICLA and send a pull request. In general it seems that the whole @version check could be handled more elegantly, right now it's duplicated in several places making it easy to forget to add it somewhere.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pascalw Pascal Widdershoven
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: