packagist - Composer tilde syntax (Next significant release) -


i've installed amnah/yii2-user library packagist via composer project. project's composer.json relevant require section looks like:

"amnah/yii2-user": "~2.0"

to understanding, should install latest version major version of "2". when check installed package via composer show amnah/yii2-user -v, see following version information:

versions : dev-master, 2.1.0-alpha4, 2.1.0-alpha3, 2.1.0-alpha2, 2.1.0alpha, 

* 2.0.0-alpha2, 2.0.0-alpha, 1.0.0-beta

so 2.0.0-alpha2 installed, 2.1 versions ignored. isn't supposed work

another way of looking @ using ~ specifies minimum version, allows last digit specified go up.

as documentation states? i'd need latest 2.x version installed. missing?

if need latest 2.x version installed, should use ~2.1 if "latest" means @ time version 2.1 current version released.

but wonder why getting alpha version installed. composer defaults install stable versions, no release candidates (rc), beta, alpha nor dev versions. did add setting minimum-stability and/or preferred-stability?

so if want alpha versions, should require ~2.1@alpha.

and word of caution: project using require yiisoft/yii2: * , yiisoft/yii2-authclient: * - asterisk meaning version sufficient. yii claims released 1.1 version incompatible newer 2.0 series (which not yet released), whatever means.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -