You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/09/19 10:33:35 UTC

[GitHub] janpio opened a new issue #18: Version pinning in Cordova CLI (via cordova-lib)

janpio opened a new issue #18: Version pinning in Cordova CLI (via cordova-lib)
URL: https://github.com/apache/cordova/issues/18
 
 
   In https://github.com/apache/cordova-lib/blob/master/src/platforms/platformsConfig.json Cordova "pins" a number of platforms to a specific version, that is used to install the platform is no other version is supplied. This behavior is also mentioned in several places in https://github.com/apache/cordova-coho/blob/master/docs/versioning-and-release-strategy.md.
   
   The clear disadvantage of this behavior is that we need to do a release of `cordova-lib` (and `cordova-cli` that contains it) to update the pinned versions. Until then, people just running e.g. `cordova platform add android` will get an outdated version by default and (from experience on Stack Overflow, Ionic Forum and `support` issues here) have to be told regularly to update the platform when they encounter a bug (`cordova platform add android@7.1.1`) - it is just not really expected behavior for most users that the default command doesn't install the newest version.
   
   1. Why do we need pinned versions?
   1. What is the history behind this feature?
   1. What are the advantages of it?
   1. Does this behavior still make sense today?
   1. Can we maybe get rid of it and replace it with "will install `latest` by default, but can of course still be overridden by supplying a specific version" in a future cli/lib version?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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