You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// src/Downloader.php// line: 200// 'master.9999999' is an alias of 'dev-master', so they should be identical, but // version_compare('master.9999999', 'dev-master', '<') returns true, // so if the bundle's version is 'dev-master', which is normalized as 'master.9999999', // and the recipe version is 'dev-master', then the 'dev-master' recipe will not be matched.// This issue affects bundle developers who need install 'dev-master' recipes frequently when developing bundles.if (version_compare($version, $v, '<')) {
continue;
}
The text was updated successfully, but these errors were encountered:
// src/Downloader.phpif ($recipeVersions = $this->index[$package->getName()] ?? null) {
$version = explode('.', preg_replace('/^dev-|^v|\.x-dev$|-dev$/', '', $version));
// Line: 197// When the original value of $version is 'dev-master', this line of code will// normalize $version to 'master.9999999'$version = $version[0].'.'.($version[1] ?? '9999999');
Configure a branch alias (e.g., 1.0.x-dev) for 'dev-master' of the bundle repository. The version-like alias will be normalized to '1.0' by the Downloader;
Configure a '1.0.x-dev' or '1.0' recipe, so that the normalized package version is not earlier than the recipe version;
In this way, the recipe version will be matched and installed.
The text was updated successfully, but these errors were encountered: