Closed drSun closed 4 years ago
Actually Packagist takes all the information about version from Github and git in general. When a version is tagged in Git, Packagist will automatically create a new version. Did you try with a clean directory?
Just to make sure, I tried to install it in empty dir, but no changes. I even removed everything from composer.json except Yii2 and usuario - nothing. Also tried different php versions up to 7.3.
I see this in composer.lock:
{
"name": "2amigos/yii2-usuario",
"version": "1.5.0",
"source": {
"type": "git",
"url": "https://github.com/2amigos/yii2-usuario.git",
"reference": "ec428ab46dbd7ba23579ae00685ca324880ad83b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/2amigos/yii2-usuario/zipball/ec428ab46dbd7ba23579ae00685ca324880ad83b",
"reference": "ec428ab46dbd7ba23579ae00685ca324880ad83b",
"shasum": ""
},
"require": {
"2amigos/yii2-selectize-widget": "^1.1",
"php": ">=5.5",
"yiisoft/yii2-authclient": "^2.1",
"yiisoft/yii2-bootstrap": "^2.0",
"yiisoft/yii2-httpclient": "^2.0",
"yiisoft/yii2-swiftmailer": "^2.0"
},
"conflict": {
"dektrium/yii2-rbac": "*",
"dektrium/yii2-user": "*"
},
"require-dev": {
"codeception/codeception": "*",
"codeception/specify": "^0.4.3",
"codeception/verify": "^0.3.1",
"friendsofphp/php-cs-fixer": "^2.3",
"phpmd/phpmd": "@stable",
"squizlabs/php_codesniffer": "*"
},
"suggest": {
"2amigos/2fa-library": "Needed if you want to enable 2 Factor Authentication. Require version ^1.0",
"2amigos/qrcode-library": "Needed if you want to enable 2FA with QR Code generation. Require version ^1.1"
}
........
As you can see the version - it is "version": "1.5.0"
, but then download a zipball from github by provided link https://api.github.com/repos/2amigos/yii2-usuario/zipball/ec428ab46dbd7ba23579ae00685ca324880ad83b
It contains an outdated code (version 1.1.5). How could that be? And I found the same in all my projects which are using Usuario.
Ok, finally I understand that stable release is not the same as what is in master branch, that's why I don't see some features. Anyway, those features are described in docs, so it it amazing why they don't exist in release code.
Indeed that's misleading, but docs are based on master
.
I have an issue with updating the extension to version 1.5. I already made all things like
composer clearcache
, removed vendor directory, and when I makecomposer update
I see this:...
But in fact it installs version 1.1.5, I have an old code in vendor. All other extensions (and yii2 itself) are updated to the latest versions. Can it be something wrong with packagist settings?
I use PHP 7.1 and my composer.json is: