I'm trying to apply different patches but after the command composer install
nothing happens. Output:
Installing dependencies from the lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Nothing to install, update or remove
Generating autoload files
42 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
* Homepage: https://www.drupal.org/project/drupal
* Support:
* docs: https://www.drupal.org/docs/user_guide/en/index.html
* chat: https://www.drupal.org/node/314178
For example: I'm trying to apply a patch in my code for the module CKEditor CodeSnippet: https://www.drupal.org/project/codesnippet/issues/3269387
part of the composer.json:
{
"name": "drupal/recommended-project",
// some code
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^2.0",
"drupal/admin_toolbar": "^3.3",
"drupal/codesnippet": "^1.8",
"drupal/core-composer-scaffold": "^10.0",
"drupal/core-project-message": "^10.0",
"drupal/core-recommended": "^10.0",
// some code
},
// some code
"config": {},
"extra": {
"patches": {
"drupal/codesnippet": {
"https://www.drupal.org/i/3269387 - Drupal 10 & CKEditor 5 support": "https://www.drupal.org/files/issues/2023-04-27/3356929-2_0.patch"
}
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
// some code
Also for testing, I found some patch for the admin toolbar module and tried to apply it but it also doesn't apply