Problem/Motivation
Currently the module cannot be added to a D10 codebase via composer require, due to some conflicts in composer.json (or maybe just because of composer.lock?)
Additionally, there is at least one deprecated function usage:
system_sort_modules_by_info_name()
(see https://www.drupal.org/node/3225999)
Not sure if there are others
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ☐ Addition/Change/Update/Fix to this project
- ☐ Testing to ensure no regression
- ☐ Automated unit/functional testing coverage
- ☐ Developer Documentation support on feature change/addition
- ☐ User Guide Documentation support on feature change/addition
- ☐ Code review from 1 Drupal core team member
- ☐ Full testing and approval
- ☐ Credit contributors
- ☐ Review with the product owner
- ☐ Release
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork project_browser-3274701
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
narendrarThis issue seems to be related to
guzzlehttp/guzzle ^6in project composer.json. Drupal 10 requires Guzzle 7 https://www.drupal.org/project/drupal/issues/3104353.Not sure but may be removing this dependency from project composer.json can help. And then we can test flow on both Drupal 9 and 10 or/else updating constraint to ^7 in composer.json file.
Comment #4
tim.plunkettThere's another change that needs to be made for D10:
Our drupalci.yml copies and modifies core's commit-code-check.sh script, and has to rewrite where to look for things like PHPCS.
Currently, we're specifically looking for
vendor/bin/phpcsand rewriting it too be/var/html/vendor/bin/phpcsBut since we need to do this for PHPStan as well, maybe it's worth just rewriting all of
vendor/binto be/var/html/vendor/binComment #5
narendrarImplemented suggested changes.
FilesystemCache used in
src/DrupalOrg/DrupalOrgClient.phpis also depreciated. What can be done her. Please suggest.Comment #6
tim.plunkettI honestly don't know why FilesystemCache or any of those 3rd party libraries are needed over
\Drupal::httpClient(). But as long as we continue to have"doctrine/cache": "^1.10"in composer.json, we'll be okay for now.Opened #3274906: Evaluate direct usage of Guzzle, Doctrine, etc in DrupalOrgClient::createGuzzleClient() for a follow-up
Comment #7
tim.plunkettMerged, thanks!
Comment #9
chrisfromredfinJust a point of information, I believe we were using a Guzzle Cache middleware at some point, but it was no longer needed with newer versions of Guzzle so was factored out (and may not have been factored out completely), just in case that sheds any light. You may not be talking about _that_ caching layer, though.