Skip to content

Conversation

@Seldaek
Copy link
Member

@Seldaek Seldaek commented Nov 19, 2025

Fixes #12620

@Seldaek Seldaek added this to the 2.9 milestone Nov 19, 2025
@Seldaek Seldaek requested a review from naderman November 19, 2025 10:10
$packagesForAdvisories = [];
foreach ($pool->getPackages() as $package) {
if (!$package instanceof RootPackageInterface && !PlatformRepository::isPlatformPackage($package->getName())) {
if (!$package instanceof RootPackageInterface && !PlatformRepository::isPlatformPackage($package->getName()) && !$request->isLockedPackage($package)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is right. Now any locked package may remain? Shouldn't the packages marked for an update and if dependencies included, its dependencies be excluded here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will push a test for what I mean I guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the PoolBuilder unlocks a package for update it also unlocks it in the Request, so my assumption was that this will just work, but feel free to add a test :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup sorry you are right, just getting mixed up with the ordering of filter and pool builder. Added a test and it passes.

@naderman naderman force-pushed the fix_partial_update_security_blocking branch from 2f6bdaf to eb3327a Compare November 19, 2025 16:57
@Seldaek Seldaek merged commit 98861c6 into composer:main Nov 19, 2025
21 checks passed
@Seldaek Seldaek deleted the fix_partial_update_security_blocking branch November 19, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package security blocking should not affect locked packages in partial updates

2 participants