mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix require regression with --fixed, fixes #11247
This commit is contained in:
parent
0d96fd8149
commit
f6f972a699
2 changed files with 31 additions and 3 deletions
|
@ -236,6 +236,30 @@ Lock file operations: 2 installs, 0 updates, 0 removals
|
|||
- Locking existing/dep (1.1.0)
|
||||
- Locking required/pkg (1.1.0)
|
||||
Using version ^1.1 for required/pkg
|
||||
OUTPUT
|
||||
];
|
||||
|
||||
yield 'use exact constraint with --fixed' => [
|
||||
[
|
||||
'type' => 'project',
|
||||
'repositories' => [
|
||||
'packages' => [
|
||||
'type' => 'package',
|
||||
'package' => [
|
||||
['name' => 'required/pkg', 'version' => '1.1.0'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
['packages' => ['required/pkg'], '--no-install' => true, '--fixed' => true],
|
||||
<<<OUTPUT
|
||||
./composer.json has been updated
|
||||
Running composer update required/pkg
|
||||
Loading composer repositories with package information
|
||||
Updating dependencies
|
||||
Lock file operations: 1 install, 0 updates, 0 removals
|
||||
- Locking required/pkg (1.1.0)
|
||||
Using version 1.1.0 for required/pkg
|
||||
OUTPUT
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue