cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mefire O. <>
Subject [DISCUSS] Deprecate --usegit flag
Date Wed, 03 Jun 2015 18:44:23 GMT
Hi list,
I think it's high time we deprecate the -usegit flag, whose intent was to provide apache git
repos as an alternative source to install platforms (the default being npm).

A little bit of background :
In the past, there were two main sources from which to install a platform. You could fetch
the platform to be installed from npm (the default).
Or you could specify that the platform to be installed be fetched from the Apache git repo
using -usegit : `cordova platform add android -usegit`.

There are certain shortcomings to the -useflag :

-        It only works with Apache git repos. It doesn't support custom git repos.

     e.g: It passes if the following is found in platformsConfig.json : `cordova platform

     e.g: the following would fail : `cordova platform add`<>

-        The code that implements it is complex and prone to bugs. e.g:

-        The git repo we want to fetch the platform from has to be manually added to the file

Suggested replacement:
We've been supporting custom git-urls for a while now :



Using this feature, we can add platforms from any git repo using the following : `cordova
platform add`<>
It also supports specifying a custom branch : `cordova platform add`

So, I think this second feature can handle all the scenarios handled by -usegit and much more

What I propose is phasing out the -usegit flag, over the next 6 months.

Please, let me know your thoughts.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message