Composer: Difference between revisions

add Test an upgrade
extract SemVer to new article
 
(One intermediate revision by the same user not shown)
Line 123: Line 123:
== Semantic Versioning ==
== Semantic Versioning ==


Using Composer correctly means that you understand and follow [https://semver.org/ Semantic Versioning]
Using Composer correctly means that you understand and follow [[Semantic Versioning]]
 
Don't use [https://thephp.cc/articles/the-death-star-version-constraint the "Death Star" version constraint] (since it's not a constraint at all).
 
Don't use '''explicit references''' (specific commit hashes). [https://phabricator.wikimedia.org/T226766 This particular issue] is probably the root of all confusion and disdain for Composer as a dependency manager amongst MediaWiki developers.


== Commands ==
== Commands ==
<code>composer show -a mediawiki/semantic-media-wiki</code> will show you the available versions of the package.


<code>composer --help</code> will show you something like this:
<code>composer --help</code> will show you something like this: