Problem/Motivation
Updater uses Stage::getActiveComposer(), which returns a ComposerUtility. #3316368: Remove our runtime dependency on composer/composer: remove ComposerUtility is removing that.
Proposed resolution
Refactor it to use ComposerInspector instead.
Remaining tasks
Do it!
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork automatic_updates-3345754
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
tedbowThis blocks #3345771: VersionPolicyValidator should use ComposerInspector instead of ComposerUtility
Comment #3
yash.rode commentedComment #5
yash.rode commentedStarting with package_manager issue for now.
Comment #6
yash.rode commentedComment #7
wim leersphpcsfailures.Comment #8
wim leersLooks great, but tests are not yet passing!
Comment #9
yash.rode commentedTests are passing on local, It's just the
PHP temp directory (/tmp) does not exist or is not writable to Composererror on DrupalCI, running tests again.Comment #10
wim leers#9: that's not what I see on DrupalCI — I see this:
Comment #11
yash.rode commentedThe tests are passing now. The test mentioned in #10 was also passing on my local.
Comment #12
wim leers🤯
Comment #13
phenaproximaSome relatively minor stuff. I'm not sure about naming the new property of InstalledPackage $isDevRequirement, because these aren't requirements per se.
Comment #14
wim leershttps://getcomposer.org/doc/04-schema.md#require-dev literally uses this terminology, that's why I suggested that instead of the
is_devthat was there before.But I guess you're worried about how lengthy it is?
Comment #15
phenaproximaThis is looking promising. Over to @tedbow for review...
Comment #16
tedbowsee MR
Comment #17
phenaproximaComment #18
tedbowLooks good but needs a Change Record. Should be made as draft for now
Comment #19
phenaproximaDone.
Comment #20
tedbow🎉
Comment #21
phenaproximaComment #23
phenaproxima