Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Static tests fail when using drupal/core:^9 #454

Open
andy-blum opened this issue Mar 27, 2021 · 2 comments
Open

Static tests fail when using drupal/core:^9 #454

andy-blum opened this issue Mar 27, 2021 · 2 comments

Comments

@andy-blum
Copy link

I want to start by apologizing if this isn't the correct method for sharing this information, or if this is out-of-scope for the project, but I was unable to find any resources anywhere to help me track down why I was having this issue.

Using this project to create a Drupal 9 site is pretty straightforward - you just update a couple version constraints in the composer.json file, but one issue I ran into for a few hours was getting the static tests to work.

Turns out, Drupal 9 adds /web/core/includes/bootstrap.inc to your composer's autoload_files.php. When running the git clean -fdX web command, this file is deleted and composer freaks out when trying to autoload it.

To get around this for now, I modified /.ci/test/static/run to git clean -fdX the libraries, modules, profiles, sites, and themes directories individually and left core alone.

@andy-blum
Copy link
Author

Additional note: you need to make sure to add drush_version: 10 to your pantheon.yml file so drush is compatible with Drupal 9

@amouro
Copy link

amouro commented May 6, 2021

Thank @andy-blum, your suggestion resolved our problem.

Instead of clean the directories individually, I use this to clean all in the web/ except web/core

git clean -fdX web -e \!web/core

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants