Trying to get @dev version of commit on branch not working

With the syntax in my composer.json from "vendor/xyz-bundle": "~2.1.0@dev"I am trying to get the latest commit in the 2.0 branch, but it always checks the 2.1.0 tag, and does not go to the last commit in the 2.0 branch.

Here is what it looks like:

enter image description here

I tried all kinds of things with branching-smoothing in the xyz package, but never get the latest commit 2.0.

Is this due to the fact that there is no separate branch 2.1 and only branch 2.0? How can I check the last commit in branch 2.0?

+4
source share
1 answer

~2.1.0(flags are now irrelevant) means >=2.1.0,<2.2.0. You expect 2.0.xthis is not in the version range.

~2.0 >=2.0,<3.0. (2.0.x) . Composer . , 2.1.x.

2.0, 2.0.*@dev ~2.0.0@dev ( >=2.0.0,<2.1.0).

. - ( , ).

+5

Source: https://habr.com/ru/post/1628104/


All Articles