Jordi Boggiano
80505e745e
Fix phpstan issues
4 years ago
Adam Žurek
25cd2382cb
Raise phpstan level to 1 ( #8027 )
4 years ago
Jordi Boggiano
3e19e3b0f1
Show alias of version in package lists in problems
4 years ago
Jordi Boggiano
e09dd9c10d
Detect packages which are only available in lock file and warn appropriately
4 years ago
Jordi Boggiano
8945936dbd
Deduplicate solver problems which list problems for dev-master AND 9999999-dev
4 years ago
Nils Adermann
415b36a1a1
Remove match types from Pool as these are no longer used
4 years ago
Nils Adermann
80a5fdf398
Remove obsolete rules and their generation
...
The only automatic conflict we have results from packages using the same name
either by literally having the same name and being different versions or they
replace the same name, so
- removed all types of obsolete rules
- simplified rule generation significantly
- got rid of provide filtering in the pool
- fixed some language in error handling
4 years ago
Nils Adermann
4e3d989978
A package providing a name should not conflict with a package replacing it
...
Simplified whatProvides, mustMatchName is unused, removed unused
function from policy
4 years ago
Jordi Boggiano
2b86df4003
Add a hint about being on v2 when things go wrong
4 years ago
Nils Adermann
4fab2c7759
Error wording use "thus cannot" instead of "can thus not"
4 years ago
Nils Adermann
9858718ef6
Give a clearer error message explaining how to update a conflicting locked dependency
4 years ago
Nils Adermann
f7b5cbd1fc
Lock file should not contain new aliases for packages which were not updated
4 years ago
Nils Adermann
5ad93959cf
PoolBuilder: On partial update of a new dep with mutual replace, unfix replacer
...
Test also verifies provider does not get uninstalled in partial update
for another package name
4 years ago
Nils Adermann
613450e58a
PoolBuilder: properly clean up alias packages when unfixing packages
...
Prevent aliases to be duplicated: no need to apply root aliases from
composer.json on packages currently locked, they should have their
aliases in the lock file, otherwise request an update.
4 years ago
Nils Adermann
2dfbf3692a
PoolBuilder: Remove null default for io
4 years ago
Nils Adermann
14000e7575
PoolBuilder: Ensure alias references get removed when unfixing a locked package
...
Use the last key + 1 for an index instead of count, since we unset elements somtimes
4 years ago
Nils Adermann
c270d3cfa6
PoolBuilder: make io non-nullable, NullIO can be used instead
4 years ago
Nils Adermann
71c3c63b54
Remove unused variable assignment
4 years ago
Nils Adermann
9fb09049ff
Rename and document constants for partial update behavior
4 years ago
Nils Adermann
fc40fefa6f
Make sure nameConstraints is always set when loading a name
4 years ago
Nils Adermann
443553423b
Mark replaced packages for update when using --with-dependencies
...
This is necessary to allow the requiring of new packages which replace
packages currently locked without requiring explicitly listing them as
an argument, so simplifies the composer require command
4 years ago
Nils Adermann
392d0abd21
Rename test files and standardize on allow list rather than whitelist
4 years ago
Nils Adermann
01fe92905a
The update allow list is now generated while building the pool
...
This reduces code complexity while making partial updates more
predictable. This also allows composer require to successfully run a
partial update for a new package with transitive dependency updates.
4 years ago
Nils Adermann
da84763f03
Move partial update handling to pool builder
4 years ago
Jordi Boggiano
cf5513f28d
Fix syntax error
4 years ago
Nils Adermann
8a6382d78d
Remove unnecessary TODOs and skip EmptyConstraint like null
4 years ago
Nils Adermann
bbdbb3517b
PoolBuilder: Drop name constraints loop, already set earlier in same code
4 years ago
Nils Adermann
59bc957e76
Simplify loading of fixed and root require packages in pool builder
...
additionally mark all packages replaced by fixed packages as loaded as
there is no need to load those names at all, since the fixed package
will provide them
4 years ago
Jordi Boggiano
d58653627a
Optimize loading of deps from fixed packages
4 years ago
Jordi Boggiano
82e2a679bf
Add TODO note
4 years ago
Jordi Boggiano
d09daa8d5a
Merge pull request #8684 from naderman/dev-require-errors
...
Handle dev extraction exit codes instead of completing broken lock with errors
4 years ago
Nils Adermann
281d8930ff
For dev extraction skip pool building, we already have a working package set
...
Also reduce getProviders back to just providers, and add some todos
4 years ago
Jordi Boggiano
73a5cc63cc
Always use Removing for consistency between dry-run and actual install
4 years ago
Nils Adermann
06f460c557
Remove trailing spaces from output
4 years ago
Nils Adermann
1f467046d7
Implement getProviders on reposet for all repo types and add replacers
...
This way errors during require dev extraction make more sense
4 years ago
Jordi Boggiano
589aa351a8
Change Uninstalling to Removing in lock operations
4 years ago
Jordi Boggiano
a7a975ec1c
Alias dev-master/trunk/default to 9999999-dev instead of normalizing the version to that, fixes #8323
4 years ago
Jordi Boggiano
9cab8c10cc
Merge branch 'master' into 2.0
4 years ago
arai
1f08138379
Delete variable
4 years ago
Jordi Boggiano
835a91532d
Add PRE_POOL_CREATE event, fixes #8348
4 years ago
Jordi Boggiano
9609729de7
Change update to upgrade for package update operations which are upgrades, refs #8594
4 years ago
Jordi Boggiano
be8dd528b8
Merge remote-tracking branch 'origin/master' into 2.0
4 years ago
Ion Bazan
a180f48921
Distinguish between updates and downgrades in dry-run
4 years ago
Nils Adermann
fdfdee03c1
Remove unused argument to pool->match
4 years ago
Nils Adermann
4f44b7b221
Remove unused policy function findUpdatePackages
4 years ago
Jordi Boggiano
189d5adab0
Fix reporting of replace conflicts to not mention provides
4 years ago
Jordi Boggiano
ec90c17e3b
Fix conflict order to be more accurate
4 years ago
Jordi Boggiano
c41df325d8
Remove RepositorySet from Solver and remove getPool from RepositorySet
4 years ago
Jordi Boggiano
1d4cdb60d0
Improve error reporting for conflicts/replaces of various kinds, fixes #7254
4 years ago
Jordi Boggiano
6c9d9e775c
Clean up and deduplicate the output of RULE_LEARNED
4 years ago