On Saturday, November 10, 2012 at 7:19 PM, Sébastien BLAISOT wrote:
Le 2012-11-08 18:48, till a écrit :
[...SNIP...]
A plugin is essentially powered by the
composer.json
file. And this is how composer works (in a nutshell): * it takes the URL of the repository (git, svn, hg) * it scans all tags and branches (e.g. trunk/master) forcomposer.json
files * it will use all tags/branches where it finds acomposer.json
file E.g. (for SVN): trunk/composer.json branches/super-feature/composer.json tags/1.0.0/composer.json tags/0.9.0/<no composer.json> The plugin repository would detect: * dev-trunk * dev-super-feature * 1.0.0[...SNIP...]
Ok, thanks Till for all your explanations. This is far clearer now, at least for me. Last question about this particular piece :
what happens if the trunk/composer.json contains the same version than, say, tags/1.0.0/composer.json ? should I ensure that in the whole tree no composer.json file has the same version in it than an other composer.json file ?
You don't have to take care of anything in this regard.
The composer.json
file does not contain any version specific information. Once setup, it can be the same — unless your plugin's dependencies change over time.
Can you explain in more detail what you're trying to do (or trying to avoid)?
Till