Problem/Motivation

Many modules require patches to be able to install them in Drupal 10.

Steps to reproduce

Install Drupal 10
Add guardr_core module and the dependent modules.

Proposed resolution

Update the composer.json file to include the patches until they are merged in.

Remaining tasks

Create an MR
Review the MR

User interface changes

None

API changes

None

Data model changes

None

Command icon 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

the_g_bomb created an issue. See original summary.

the_g_bomb’s picture

Status: Active » Needs review

the_g_bomb’s picture

I struggled rebasing the recent changes to the 2.x branch into the branch I had created initially, too many changes etc. So, I ended up closing the original MR and opening a new one.

I have nearly all the modules from the D7 version in this branch with the exception of 6 which aren’t available to D8/9/10 yet, and a further 7 which are no longer needed. They are outlined in the issue about splitting guardr_core: #3159974-5: Split Guardr into Guardr Core, Guardr Audit, Guardr Extras

the_g_bomb’s picture

I am now struggling to get guardr_core D10 installed on a project,

I suspect that the lenient allow list doesn't cascade down through the composer dependencies.

I may have to add the various patch forks to get the D10 versions of the modules that don't have a valid release available yet.

the_g_bomb’s picture

I tried adding the repos to install D10-ready forks, but those didn't pull through on the composer dependencies either.

I have removed the modules that are not yet ready for D10.
These are:
email_confirmer
hacked
logging_alerts
mass_pwreset
paranoia
role_watchdog
state_log
view_profiles_perms
x_originating_ip

The rest have been added.

MR 14 can be tested using:

composer create-project --no-interaction --no-install drupal/recommended-project:^10.0 guardrd10test
cd guardrd10test
composer config repositories.guardr_core vcs git@git.drupal.org:issue/guardr_core-3350324.git
composer require -W drupal/guardr_core:dev-3350324-update-to-D10-minimal

joestewart made their first commit to this issue’s fork.

joestewart’s picture

Hi Gareth, thank you for the issue and work!

I created a more minimal MR that didn't add any packages from the Guardr profile.

@Shrop and @Gareth does https://git.drupalcode.org/project/guardr_core/-/merge_requests/15 suffice for Drupal 10?

shrop’s picture

Thanks Joe and Gareth!

I like this and noting we did remove Hacked in this discussion. I think once we have the D10 version released, we can look at the other items around splitting things up more and some other upcoming changes.

I am also thinking we should do Drupal core reqs like this - ^9.3 || ^10 vs. ^9 || ^10 could protect us from dependencies requiring 9.3. We have some now.

shrop’s picture

Status: Needs review » Fixed

Thank to the team here! Great to get this going and talk next steps.

Guardr Core 2.1.0 released.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.