Closed tekord closed 2 years ago
+1. Yep, I have same problem in my project.
See
There are issues with downgrading bower-assets.
Another workaround might be to add asset-packagist as a repository to your project and run the update with --no-plugins
.
It's not simply Composer problem, looks violating common versioning policy. I tried bower install
with:
{
"dependencies": {
"yii2-pjax": "^2.0.7",
}
}
v2.0.7
tagged version was installed instead of 2.0.7.1
. It seems that 2.0.7.1
was not recognized as semantic version. ^2.0.7.1
was failed. Only 2.0.7.1
succeeded (but not expected).
They implicitly says that any released version (not pre-release) MUST contain just 3 numbers in http://semver.org/ .
Please reassign tag v2.0.8
and remove 2.0.7.1
.
Bower does not 4-digit numbers, see https://github.com/bower/bower/issues/118 - composer does.
Seems it's not an issue anymore. At least I haven't heard anything about it last years.
Yii 2.0.12 has the following dependency:
Today I did composer update and Pjax has been broken. I looked into the bower/yii2-pjax/bower.json file:
version is 2.0.7.1. I learned the change log and found the line:
I tried to override version of bower-asset/yii2-pjax by setting it in my project's composer file like this:
But composer update shows the error:
I looked at another Yii project which is not updated last days, they have the same composer.json in yiisoft/yii2, BUT the different yiisoft/pjax/bower.json:
Version is 2.0.6.
How this could happen? Build-version (even not minor) has backward incompatible changes and it updates silently? And why I can't roll back to 2.0.6 version?