- Issue created by @tedbow
- Status changed to Postponed
almost 2 years ago 11:03am 3 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I think this will happen automatically as part of π Remove our runtime dependency on composer/composer: remove ComposerUtility Fixed ? Let's keep this around just in case that's not true!
- πΊπΈUnited States tedbow Ithaca, NY, USA
going to mark this as core-mvp. We could argue that it is not but if we don't remove
\Drupal\fixture_manipulator\FixtureManipulator::modifyPackage
then we also can't remove\Drupal\fixture_manipulator\FixtureManipulator::setPackage
which is 100 lines long and not really well documented. So I think it would take more time to help a core committer review that function than it would to just make sure it is gone.Another option would be to move the logic needed to update a package, not add or remove from
FixtureManipulator::setPackage
directly intomodifyPackage()
because it would much more understandable.In any case I don't think want to try to get a core review of the current
\Drupal\fixture_manipulator\FixtureManipulator::setPackage
. It served us well when we needed it but πβοΈ - Assigned to wim leers
- Status changed to Needs work
almost 2 years ago 2:48pm 8 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Looks like at least some of the failures were independently discovered in the core MR too, and are being worked on here: #3346628 β see #3346628-9: ComposerPluginsValidatorTest fails with pcre.backtrack_limit=1000000 set β .
Next up: rebasing on
origin/3.0.x
(rebase instead of merge since nobody has reviewed this yet anyway) to see if the failures remain the same. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π FixtureManipulator should only use Composer commands, rather than manipulating JSON directly Fixed is in, continuing hereβ¦
- Issue was unassigned.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Based on the past ~2.5 hours of research, it looks like
composer
does not actually support multiple path repos providing the same package, but different versions of it. Eithercomposer update --lock
complains first (I can work around this by using--append
to add the new version last), orcomposer require
complains (which then says that the first one is βcanonicalβ despite my having specifiedcanonical: false
). I need a break from this debugging saga, so I just pushed a bunch of commits, but I have not been able to figure out how to get\Drupal\Tests\package_manager\Kernel\SupportedReleaseValidatorTest
to pass β¦ π¬ - Assigned to wim leers
- Assigned to phenaproxima
- Status changed to RTBC
almost 2 years ago 8:00pm 9 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
IMO this is ready. I just posted ~10 comments for the reviewer/committer β who happens to be @phenaproxima today because @tedbow is out π
I'm hopeful that that will address all of @phenaproxima's questions so he can comfortably commit this!
- πΊπΈUnited States phenaproxima Massachusetts
Wim Leers β credited phenaproxima β .
- Assigned to wim leers
- Status changed to Needs work
almost 2 years ago 8:17pm 9 March 2023 - πΊπΈUnited States phenaproxima Massachusetts
This mostly looks great, I think. I'm really glad we're finally burying the direct modification of underlying Composer data. This is magnificent and I can't wait to land it.
I think some doc comments could be slightly improved. There is one question that is blocking, because it seems to contradict documented behavior.
- Assigned to phenaproxima
- Status changed to RTBC
almost 2 years ago 8:21pm 9 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π
And FYI: #3342227-22: ScaffoldFilePermissionsValidator should use ComposerInspector instead of ComposerUtility β has a patch that will be green once this lands! π€π₯³ (Re-test it after this is in!)
- πΊπΈUnited States phenaproxima Massachusetts
Yeah, you know...I can't find anything to complain about here, really. It's magnificent.
Merging when tests pass.
-
phenaproxima β
committed ef7959d8 on 3.0.x authored by
Wim Leers β
Issue #3345633 by Wim Leers, phenaproxima: Remove FixtureManipulator::...
-
phenaproxima β
committed ef7959d8 on 3.0.x authored by
Wim Leers β
- Status changed to Fixed
almost 2 years ago 9:18pm 9 March 2023 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
This also unblocked π Explicitly validate lock files everywhere: `composer validate --check-lock` Fixed π
Automatically closed - issue fixed for 2 weeks with no activity.