Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer require hangs sometimes when a patch applies #522

Closed
5 tasks done
sean-e-dietrich opened this issue Sep 1, 2023 · 2 comments
Closed
5 tasks done

Composer require hangs sometimes when a patch applies #522

sean-e-dietrich opened this issue Sep 1, 2023 · 2 comments
Labels
bug Inconsistencies or issues which will cause a problem for users or implementors.

Comments

@sean-e-dietrich
Copy link

Verification

  • I have updated Composer to the most recent stable release (composer self-update)
  • I have updated Composer Patches to the most recent stable release (composer update cweagans/composer-patches)
  • I am using one of the supported PHP versions (8.0+)
  • I have searched existing issues and discussions for my problem.
  • My problem is not addressed in the troubleshooting guide.

What were you trying to do (and why)?

I was trying to composer require drupal/entity_inherit, so that I could use the project.

What happened? What did you expect to happen?

Composer froze at applying the patch

❯ composer require drupal/entity_inherit                                                                                                                                       ✘ INT ./composer.json has been updated
Running composer update drupal/entity_inherit
Gathering patches for root package.
Removing package drupal/gin so that it can be re-installed and re-patched.
  - Removing drupal/gin (3.0.0-rc5)
Deleting web/themes/contrib/gin - deleted
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking drupal/entity_inherit (4.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/gin (3.0.0-rc5): Extracting archive
  - Applying patches for drupal/gin
    https://www.drupal.org/files/issues/2023-07-12/3373987-2-WSOD-node-revision-page.patch (Fix WSOD)

Contents of composer.json

{
    "name": "kanopi/drupal-starter",
    "description": "Project template for Drupal 9 projects with composer and docksal",
    "type": "project",
    "license": "GPL-2.0+",
    "authors": [
        {
            "name": "Sean Dietrich <sean@kanopi.com>",
            "role": "Developer / Architect"
        },
        {
            "name": "Paul Sheldrake <paul@kanopi.com>",
            "role": "Trouble Maker"
        }
    ],
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        },
        {
            "type": "package",
            "package": {
                "name": "jaypan/jquery-colorpicker",
                "version": "1.0.1",
                "type": "drupal-library",
                "dist": {
                    "type": "zip",
                    "url": "https://github.com/jaypan/jquery_colorpicker/archive/refs/tags/1.0.1.zip"
                }
            }
        }
    ],
    "require": {
        "php": ">=7.4",
        "composer/installers": "^1.10",
        "cweagans/composer-patches": "^1.6",
        "drupal/a11yproject_checklist": "*",
        "drupal/address": "^1.11",
        "drupal/admin_toolbar": "^3.0",
        "drupal/ala": "^2.2",
        "drupal/autocomplete_deluxe": "^2.0",
        "drupal/better_exposed_filters": "^5.2",
        "drupal/block_class": "^1.3",
        "drupal/captcha": "^1.9",
        "drupal/classy_paragraphs": "^1.0@RC",
        "drupal/coffee": "^1.2",
        "drupal/color_field": "^2.5",
        "drupal/components": "^2.4",
        "drupal/conditional_fields": "^4.0@alpha",
        "drupal/config_filter": "^2.2",
        "drupal/config_split": "^2",
        "drupal/configurable_views_filter_block": "^1.0@alpha",
        "drupal/core-composer-scaffold": "^9.3.0",
        "drupal/core-recommended": "^9.3.0",
        "drupal/core-vendor-hardening": "^9.3.0",
        "drupal/cshs": "^4.0",
        "drupal/ctools": "^3.7",
        "drupal/custom_breadcrumbs": "^1.0",
        "drupal/date_recur": "^3.2",
        "drupal/devel": "^4.1",
        "drupal/dfp": "^1.2",
        "drupal/diff": "^1.1",
        "drupal/disable_field": "^3.0",
        "drupal/domain": "1.x-dev@dev",
        "drupal/easy_breadcrumb": "^2.0",
        "drupal/editor_advanced_link": "^2.0",
        "drupal/emulsify_twig": "^2.1",
        "drupal/entity_field_condition": "^1.3",
        "drupal/entity_form_field_label": "^1.6",
        "drupal/entity_print": "^2.11",
        "drupal/entity_reference_views": "^1.1@beta",
        "drupal/entity_usage": "^2.0@beta",
        "drupal/entityqueue": "^1.6",
        "drupal/facets": "^2.0",
        "drupal/field_defaults": "^1.3",
        "drupal/field_group": "^3.1",
        "drupal/field_permissions": "^1.2",
        "drupal/fivestar": "^1.0@alpha",
        "drupal/focal_point": "^1.5",
        "drupal/fontawesome": "^2.23",
        "drupal/form_mode_control": "^2.1",
        "drupal/geocoder": "3.x-dev",
        "drupal/geophp": "^1.0",
        "drupal/gin": "^3.0@beta",
        "drupal/gin_login": "^1.2",
        "drupal/google_analytics": "^4.0",
        "drupal/google_tag": "^2.0",
        "drupal/image_style_warmer": "^1.1",
        "drupal/improved_multi_select": "^1.7",
        "drupal/ip": "^3.1",
        "drupal/jquery_colorpicker": "^3.0",
        "drupal/jquery_ui_autocomplete": "^2.0",
        "drupal/jquery_ui_menu": "^2.0",
        "drupal/key": "*",
        "drupal/launch_checklist": "^1.1",
        "drupal/link_attributes": "^1.11",
        "drupal/linkchecker": "^1.1",
        "drupal/linkit": "^5.0-beta10",
        "drupal/location_migration": "^1.0@beta",
        "drupal/lock_field_values": "^2.0@alpha",
        "drupal/mailsystem": "^4.4",
        "drupal/masked_input": "^2.0@beta",
        "drupal/masquerade": "^2.0@RC",
        "drupal/media_library_edit": "^3.0",
        "drupal/menu_block": "^1.10",
        "drupal/menu_link_attributes": "^1.2",
        "drupal/metatag": "^1.15",
        "drupal/migrate_devel": "^2.0@alpha",
        "drupal/migrate_pack": "^2.0",
        "drupal/migrate_plus": "^6.0",
        "drupal/migrate_tools": "^6.0",
        "drupal/migrate_upgrade": "^4.0",
        "drupal/mimemail": "^1.0@alpha",
        "drupal/multiple_registration": "^3.2",
        "drupal/office_hours": "^1.7",
        "drupal/olark": "^1.2",
        "drupal/pathauto": "^1.8",
        "drupal/permissions_filter": "^1.3",
        "drupal/postal_code": "1.x-dev@dev",
        "drupal/profile": "^1.7",
        "drupal/profile_reg_path": "1.x-dev@dev",
        "drupal/quick_node_clone": "^1.15",
        "drupal/recaptcha": "^3.1",
        "drupal/redis": "^1.5",
        "drupal/resave_all_nodes": "^1.0@alpha",
        "drupal/resource_hints": "1.x-dev",
        "drupal/restui": "^1.21",
        "drupal/schema_metatag": "^2.2",
        "drupal/search_api_autocomplete": "^1.7",
        "drupal/search_api_location": "1.x-dev",
        "drupal/search_api_page": "^1.0",
        "drupal/search_api_pantheon": "^8.1",
        "drupal/seo_checklist": "4.x-dev@dev",
        "drupal/seo_starter": "1.x-dev",
        "drupal/shs": "^2.0@RC",
        "drupal/simple_sitemap": "^4",
        "drupal/sitemap": "^2.0",
        "drupal/sitewide_alert": "^2.0",
        "drupal/smart_date": "^3.7@beta",
        "drupal/smart_trim": "^2.0",
        "drupal/smtp": "^1.2",
        "drupal/structure_sync": "^2.0",
        "drupal/svg_image_field": "^2.2@beta",
        "drupal/swiftmailer": "^2.4",
        "drupal/taxonomy_manager": "^2.0",
        "drupal/tb_megamenu": "^2.0@alpha",
        "drupal/tour_enhancements": "^1",
        "drupal/tour_ui": "^1.0@beta",
        "drupal/twig_tweak": "^3.1",
        "drupal/twig_vardumper": "^3.0",
        "drupal/view_custom_table": "^2.0",
        "drupal/views_accordion": "^2.0",
        "drupal/views_aggregator": "^2.0",
        "drupal/views_bulk_edit": "^2.9",
        "drupal/views_bulk_operations": "^4.0",
        "drupal/views_data_export": "^1.2",
        "drupal/views_field_view": "^1.0@beta",
        "drupal/views_geojson": "^1.2",
        "drupal/viewsreference": "2.x-dev@dev",
        "drupal/webp": "^1.0@beta",
        "drupal/workbench": "^1.4",
        "drupal/workbench_access": "^2.0",
        "drupal/xls_serialization": "^1.3",
        "drupal/yoast_seo": "^1.7",
        "drupal/youtube": "^1.2",
        "drush/drush": "^10",
        "geocoder-php/google-maps-provider": "^4.7",
        "joachim-n/composer-manifest": "^1.0",
        "mikehaertl/phpwkhtmltopdf": "~2.1.",
        "npm-asset/select2": "^4.0",
        "oomphinc/composer-installers-extender": "2.0.0",
        "pantheon-systems/drupal-integrations": "^9",
        "phpoffice/phpspreadsheet": "^1.28",
        "rvtraveller/qs-composer-installer": "^1.1",
        "tecnickcom/tcpdf": "~6.",
        "webflo/drupal-finder": "^1.0.0",
        "webmozart/path-util": "^2.3"
    },
    "require-dev": {
        "drupal/core-dev": "^9.4",
        "mglaman/phpstan-drupal": "^1.1",
        "palantirnet/drupal-rector": "^0.15.1",
        "phpspec/prophecy-phpunit": "^2.0",
        "phpstan/extension-installer": "^1.3",
        "phpstan/phpstan-deprecation-rules": "^1.1"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "autoload": {
        "classmap": [
            "scripts/composer/ScriptHandler.php"
        ]
    },
    "scripts": {
        "lint-php": "find web/modules/custom web/themes/custom -not -path '*/node_modules/*' -name '*.php' -exec php -l {} \\;",
        "code-sniff-modules": "vendor/bin/phpcs --ignore=*/node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/custom ",
        "code-sniff-themes": "vendor/bin/phpcs --ignore=*/node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/themes/custom ",
        "code-sniff": [
            "@code-sniff-modules",
            "@code-sniff-themes"
        ],
        "code-fix-modules": "vendor/bin/phpcbf --ignore=*/node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/custom ",
        "code-fix-themes": "vendor/bin/phpcbf --ignore=*/node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/themes/custom ",
        "code-fix": [
            "@code-fix-modules",
            "@code-fix-themes",
            "@rector-fix",
            "@lint-php"
        ],
        "phpstan": [
            "Composer\\Config::disableProcessTimeout",
            "vendor/bin/phpstan analyse --memory-limit=-1 web/modules/custom web/themes/custom"
        ],
        "rector-modules": [
             "Composer\\Config::disableProcessTimeout",
             "vendor/bin/rector process web/modules/custom/ --dry-run"
         ],
        "rector-themes": [
             "Composer\\Config::disableProcessTimeout",
             "vendor/bin/rector process web/themes/custom/ --dry-run"
         ],
        "rector-fix-modules": [
             "Composer\\Config::disableProcessTimeout",
             "vendor/bin/rector process web/modules/custom/"
         ],
        "rector-fix-themes": [
             "Composer\\Config::disableProcessTimeout",
             "vendor/bin/rector process web/themes/custom/"
         ],
        "rector-fix": [
            "@rector-fix-modules",
            "@rector-fix-themes"
        ],
        "code-check": [
            "@phpstan",
            "@rector-modules",
            "@rector-themes",
            "@code-sniff"
        ],
        "prepare-for-pantheon": "DrupalProject\\composer\\ScriptHandler::prepareForPantheon",
        "build-assets": [
            "composer install --optimize-autoloader --no-dev --no-cache"
        ],
        "post-autoload-dump": [
            "[ ! -f rector.php ] && cp vendor/palantirnet/drupal-rector/rector.php . || true",
            "vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer || true"
        ]
    },
    "extra": {
        "enable-patching": true,
        "installer-types": [
            "drupal-library",
            "npm-asset",
            "bower-asset",
            "quicksilver-script"
        ],
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/profiles/contrib/{$name}": ["type:drupal-profile"],
            "web/themes/contrib/{$name}": ["type:drupal-theme"],
            "drush/contrib/{$name}": ["type:drupal-drush"],
            "web/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"]
        },
        "drupal-scaffold": {
            "locations": {
                "web-root": "./web"
            },
            "allowed-packages": [
                "pantheon-systems/drupal-integrations"
            ],
            "file-mapping": {
                "[web-root]/.htaccess": false,
                "[web-root]/robots.txt": {
                    "append": "assets/custom-robots.txt"
                },
                "[web-root]/sites/development.services.yml": false
            }
        },
        "patches": {
            "drupal/domain": {
                "Migrate domain from d7 to d9": "https://www.drupal.org/files/issues/2020-02-27/domain-migration-path-for-domain-2882837-13.patch"
            },
            "drupal/fivestar": {
                "Migrate fivestar from d7 to d9": "https://www.drupal.org/files/issues/2022-04-01/fivestar_field_migration-3138309-21.patch",
                "Voting working if 'allow user to vote on already voted content' is not active see: https://www.drupal.org/project/fivestar/issues/3151755": "https://www.drupal.org/files/issues/2020-06-15/attepmt-to-fix-user-can-vote-3151755-2.patch",
                "Remove 'fivestar_preview' theme function see: https://www.drupal.org/project/fivestar/issues/3273701": "https://www.drupal.org/files/issues/2022-04-06/3273701_3.patch"
            },
            "drupal/location_migration": {
                "Migrate location from d7 to d9": "https://www.drupal.org/files/issues/2021-08-09/location_migration-source_count-3192657-13.patch"
            },
            "drupal/core": {
                "Allow blocks to be configured to show/hide on 403/404 pages": "https://www.drupal.org/files/issues/2023-01-07/2245767-112.patch",
                "Warning: imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile GDToolkit.php:203": "https://www.drupal.org/files/issues/2022-07-05/drupal-warning-3261924-8.patch",
                "Hide body summary by default": "patches/TW29039412_hidesummary.patch"
            },
            "drupal/entity_reference_revisions": {
                "Fix Invalid translation language (und) specified": "https://www.drupal.org/files/issues/2021-09-30/3024588-28-invalid_translation_language.patch",
                "Getting errors while running Paragraph/Media migration": "https://www.drupal.org/files/issues/2022-09-08/3299758-4.patch"
            },
            "drupal/field_group": {
                "Tabs with invalid input are not focused. See: https://www.drupal.org/project/field_group/issues/2894351.": "https://www.drupal.org/files/issues/2021-04-18/2894351-23.patch"
            },
            "drupal/jquery_colorpicker": {
                "Fix too many redirects": "https://www.drupal.org/files/issues/2023-01-25/jquery_colorpicker_remove_vendor_stream_wrapper_3038138.patch"
            },
            "drupal/search_api_location": {
                "Geocode LocationInput: Compatibility with Geocoder 3. See: https://www.drupal.org/project/search_api_location/issues/3048597.": "https://www.drupal.org/files/issues/2023-02-22/3048597-22.patch"
            },
            "drupal/profile": {
                "Migrate from profile2 to profile": "https://www.drupal.org/files/issues/2020-05-15/2957256-36.patch",
                "Keep open profile form in register": "patches/TW29104691-register.patch"
            },
            "drupal/diff": {
                "Include Revisions ID": "https://www.drupal.org/files/issues/2023-04-17/diff-display_revision_id-3338468-7.patch"
            },
            "drupal/masquerade": {
                "Avoid 404 error in redirects": "https://www.drupal.org/files/issues/2023-04-21/validatedestination-3355654-1.patch"
            },
            "drupal/dfp": {
                "Compatibilty with Devel": "https://www.drupal.org/files/issues/2023-03-20/entity-edit-delete-def-3334806-4.patch",
                "Admin permissions": "https://www.drupal.org/files/issues/2022-05-09/3279406-tag-list-permission-not-working.patch"
            },
            "drupal/shs": {
                "- Select a value - appears at bottom of lists. See: ": "https://git.drupalcode.org/project/shs/-/merge_requests/4.diff",
                "- Trigger Event Changed on host field": "patches/shs_trigger_event.patch"
            },
            "drupal/autocomplete_deluxe": {
                "Fix multiple entity reference field": "https://www.drupal.org/files/issues/2021-05-25/3053986-6.patch"
            },
            "drupal/gin": {
                "Fix WSOD": "https://www.drupal.org/files/issues/2023-07-12/3373987-2-WSOD-node-revision-page.patch"
            }
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "process-timeout": 1200,
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "composer/installers": true,
            "cweagans/composer-patches": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-vendor-hardening": true,
            "joachim-n/composer-manifest": true,
            "oomphinc/composer-installers-extender": true,
            "rvtraveller/qs-composer-installer": true,
            "php-http/discovery": true,
            "phpstan/extension-installer": true
        }
    }
}

Contents of patches.lock.json

None that I can find

Full output of composer patches-doctor

Command "patches-doctor" is not defined.

Full output of relevant Composer command with the -vvv flag added

~/projects/website-project feature/2916…earch-modify ❯ composer -vvv require drupal/entity_inherit                                                                                                                                  ✘ Running 2.6.1 (2023-09-01 13:53:08) with PHP 8.2.4 on Darwin / 22.6.0
Reading ./composer.json (/Users/sdietrich/projects/website-project/composer.json)
Loading config file /Users/sdietrich/.composer/config.json
Loading config file /Users/sdietrich/.composer/auth.json
Loading config file ./composer.json (/Users/sdietrich/projects/website-project/composer.json)
Checked CA file /usr/local/etc/ca-certificates/cert.pem: valid
Executing command (/Users/sdietrich/projects/website-project): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing async command (/Users/sdietrich/projects/website-project): git rev-list main..feature/29161940-service-search-modify
Executing async command (/Users/sdietrich/projects/website-project): git rev-list remotes/origin/main..feature/29161940-service-search-modify
Reading /Users/sdietrich/.composer/composer.json
Loading config file /Users/sdietrich/.composer/config.json
Loading config file /Users/sdietrich/.composer/auth.json
Loading config file /Users/sdietrich/.composer/composer.json (/Users/sdietrich/.composer/composer.json)
Loading config file /Users/sdietrich/.composer/auth.json
Reading /Users/sdietrich/.composer/auth.json
Reading /Users/sdietrich/projects/website-project/vendor/composer/installed.json
Loading plugin Composer\Installers\Plugin (from composer/installers)
Loading plugin PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin (from dealerdirect/phpcodesniffer-composer-installer)
Loading plugin Http\Discovery\Composer\Plugin (from php-http/discovery)
Loading plugin cweagans\Composer\Patches (from cweagans/composer-patches)
Loading plugin Drupal\Composer\Plugin\Scaffold\Plugin (from drupal/core-composer-scaffold)
Loading plugin Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin (from drupal/core-vendor-hardening)
Loading plugin ComposerManifest\Plugin (from joachim-n/composer-manifest)
Loading plugin OomphInc\ComposerInstallersExtender\Plugin (from oomphinc/composer-installers-extender)
Loading plugin PHPStan\ExtensionInstaller\Plugin (from phpstan/extension-installer)
Loading plugin rvtraveller\QuicksilverComposerInstaller\QuicksilverComposerInstallerPlugin (from rvtraveller/qs-composer-installer)
Reading /Users/sdietrich/Library/Caches/composer/repo/https---packages.drupal.org-8/packages.json from cache
Downloading https://packages.drupal.org/8/packages.json if modified
[304] https://packages.drupal.org/8/packages.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---packages.drupal.org-8/provider-drupal~entity_inherit.json from cache
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit.json if modified
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit~dev.json
[304] https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit.json
[404] https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit~dev.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---packages.drupal.org-8/provider-drupal~entity_inherit.json from cache
Reading /Users/sdietrich/Library/Caches/composer/repo/https---asset-packagist.org/packages.json from cache
Downloading https://asset-packagist.org/packages.json if modified
[304] https://asset-packagist.org/packages.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---asset-packagist.org/p-provider-latest-.json from cache
Reading /Users/sdietrich/Library/Caches/composer/repo/https---repo.packagist.org/packages.json from cache
Downloading https://repo.packagist.org/packages.json if modified
[200] https://repo.packagist.org/packages.json
Info from https://repo.packagist.org: #StandWithUkraine
Writing /Users/sdietrich/Library/Caches/composer/repo/https---repo.packagist.org/packages.json into cache
Downloading https://repo.packagist.org/p2/drupal/entity_inherit.json
Downloading https://repo.packagist.org/p2/drupal/entity_inherit~dev.json
[404] https://repo.packagist.org/p2/drupal/entity_inherit~dev.json
[404] https://repo.packagist.org/p2/drupal/entity_inherit.json
./composer.json has been updated
Unloading plugin rvtraveller\QuicksilverComposerInstaller\QuicksilverComposerInstallerPlugin
Unloading plugin PHPStan\ExtensionInstaller\Plugin
Unloading plugin OomphInc\ComposerInstallersExtender\Plugin
Unloading plugin ComposerManifest\Plugin
Unloading plugin Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin
Unloading plugin Drupal\Composer\Plugin\Scaffold\Plugin
Unloading plugin cweagans\Composer\Patches
Unloading plugin Http\Discovery\Composer\Plugin
Unloading plugin Composer\Installers\Plugin
Unloading plugin PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin
Reading ./composer.json (/Users/sdietrich/projects/website-project/composer.json)
Loading config file /Users/sdietrich/.composer/config.json
Loading config file /Users/sdietrich/.composer/auth.json
Loading config file ./composer.json (/Users/sdietrich/projects/website-project/composer.json)
Executing command (/Users/sdietrich/projects/website-project): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Executing async command (/Users/sdietrich/projects/website-project): git rev-list main..feature/29161940-service-search-modify
Executing async command (/Users/sdietrich/projects/website-project): git rev-list remotes/origin/main..feature/29161940-service-search-modify
Reading /Users/sdietrich/.composer/composer.json
Loading config file /Users/sdietrich/.composer/config.json
Loading config file /Users/sdietrich/.composer/auth.json
Loading config file /Users/sdietrich/.composer/composer.json (/Users/sdietrich/.composer/composer.json)
Loading config file /Users/sdietrich/.composer/auth.json
Reading /Users/sdietrich/.composer/auth.json
Reading /Users/sdietrich/projects/website-project/vendor/composer/installed.json
Loading plugin Composer\Installers\Plugin_composer_tmp0 (from composer/installers)
Loading plugin PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin_composer_tmp1 (from dealerdirect/phpcodesniffer-composer-installer)
Loading plugin Http\Discovery\Composer\Plugin_composer_tmp2 (from php-http/discovery)
Loading plugin cweagans\Composer\Patches_composer_tmp3 (from cweagans/composer-patches)
Loading plugin Drupal\Composer\Plugin\Scaffold\Plugin_composer_tmp4 (from drupal/core-composer-scaffold)
Loading plugin Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin_composer_tmp5 (from drupal/core-vendor-hardening)
Loading plugin ComposerManifest\Plugin_composer_tmp6 (from joachim-n/composer-manifest)
Loading plugin OomphInc\ComposerInstallersExtender\Plugin_composer_tmp7 (from oomphinc/composer-installers-extender)
Loading plugin PHPStan\ExtensionInstaller\Plugin_composer_tmp8 (from phpstan/extension-installer)
Loading plugin rvtraveller\QuicksilverComposerInstaller\QuicksilverComposerInstallerPlugin_composer_tmp9 (from rvtraveller/qs-composer-installer)
Running composer update drupal/entity_inherit
> command: Drupal\Composer\Plugin\Scaffold\Plugin_composer_tmp4->onCommand
Reading ./composer.lock (/Users/sdietrich/projects/website-project/composer.lock)
> pre-update-cmd: cweagans\Composer\Patches_composer_tmp3->checkPatches
Gathering patches for root package.
Removing package drupal/gin so that it can be re-installed and re-patched.
  - Removing drupal/gin (3.0.0-rc5)
Executing async command (CWD): rm -rf 'web/themes/contrib/gin'
Deleting web/themes/contrib/gin - deleted
Loading composer repositories with package information
Reading /Users/sdietrich/Library/Caches/composer/repo/https---packages.drupal.org-8/packages.json from cache
Downloading https://packages.drupal.org/8/packages.json if modified
[304] https://packages.drupal.org/8/packages.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---packages.drupal.org-8/provider-drupal~entity_inherit.json from cache
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit.json if modified
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit~dev.json
[304] https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit.json
[404] https://packages.drupal.org/files/packages/8/p2/drupal/entity_inherit~dev.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---asset-packagist.org/packages.json from cache
Downloading https://asset-packagist.org/packages.json if modified
[304] https://asset-packagist.org/packages.json
Reading /Users/sdietrich/Library/Caches/composer/repo/https---asset-packagist.org/p-provider-latest-.json from cache
Reading /Users/sdietrich/Library/Caches/composer/repo/https---repo.packagist.org/packages.json from cache
Downloading https://repo.packagist.org/packages.json if modified
[304] https://repo.packagist.org/packages.json
Downloading https://repo.packagist.org/p2/php-http/client-implementation.json
Downloading https://repo.packagist.org/p2/psr/http-message-implementation.json
Downloading https://repo.packagist.org/p2/php-http/client-implementation~dev.json
Downloading https://repo.packagist.org/p2/psr/http-message-implementation~dev.json
[404] https://repo.packagist.org/p2/php-http/client-implementation.json
[404] https://repo.packagist.org/p2/psr/http-message-implementation.json
[404] https://repo.packagist.org/p2/php-http/client-implementation~dev.json
[404] https://repo.packagist.org/p2/psr/http-message-implementation~dev.json
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/core-entity_reference.json
Downloading https://packages.drupal.org/files/packages/8/p2/drupal/core-entity_reference~dev.json
[404] https://packages.drupal.org/files/packages/8/p2/drupal/core-entity_reference.json
[404] https://packages.drupal.org/files/packages/8/p2/drupal/core-entity_reference~dev.json
Downloading https://repo.packagist.org/p2/drupal/core-entity_reference.json
Downloading https://repo.packagist.org/p2/drupal/core-entity_reference~dev.json
[404] https://repo.packagist.org/p2/drupal/core-entity_reference.json
[404] https://repo.packagist.org/p2/drupal/core-entity_reference~dev.json
Built pool.
Running pool optimizer.
Pool optimizer completed in 0.034 seconds
Found 482 package versions referenced in your dependency graph. 6 (1%) were optimized away.
Updating dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.003 seconds
Analyzed 476 packages to resolve dependencies
Analyzed 1284 rules to resolve dependencies
Generating rules
Resolving dependencies through SAT
Looking at all rules.

Dependency resolution completed in 0.001 seconds
Lock file operations: 1 install, 0 updates, 0 removals
Installs: drupal/entity_inherit:4.0.1
  - Locking drupal/entity_inherit (4.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Reading ./composer.lock (/Users/sdietrich/projects/website-project/composer.lock)
Package operations: 1 install, 0 updates, 0 removals
Installs: drupal/gin:3.0.0-rc5
Reading /Users/sdietrich/Library/Caches/composer/files/drupal/gin/c8d2f7395fb5a1724e7470880523cccc5c3a264b.zip from cache
  - Loading drupal/gin (3.0.0-rc5) from cache
> pre-package-install: cweagans\Composer\Patches_composer_tmp3->gatherPatches
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
Found 1 patches for drupal/domain.
Found 3 patches for drupal/fivestar.
Found 1 patches for drupal/location_migration.
Found 3 patches for drupal/core.
Found 2 patches for drupal/entity_reference_revisions.
Found 1 patches for drupal/field_group.
Found 1 patches for drupal/jquery_colorpicker.
Found 1 patches for drupal/search_api_location.
Found 2 patches for drupal/profile.
Found 1 patches for drupal/diff.
Found 1 patches for drupal/masquerade.
Found 2 patches for drupal/dfp.
Found 2 patches for drupal/shs.
Found 1 patches for drupal/autocomplete_deluxe.
Found 1 patches for drupal/gin.
> pre-package-install: Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin_composer_tmp5->onPrePackageInstall
  - Installing drupal/gin (3.0.0-rc5): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/Users/sdietrich/projects/website-project/vendor/composer/tmp-dd703dbce54f7292f72584909b3392b9.zip' -d '/Users/sdietrich/projects/website-project/vendor/composer/2a71f887'
Executing async command (CWD): rm -rf '/Users/sdietrich/projects/website-project/vendor/composer/2a71f887'
> post-package-install: cweagans\Composer\Patches_composer_tmp3->postInstall
  - Applying patches for drupal/gin
    https://www.drupal.org/files/issues/2023-07-12/3373987-2-WSOD-node-revision-page.patch (Fix WSOD)
Downloading https://www.drupal.org/files/issues/2023-07-12/3373987-2-WSOD-node-revision-page.patch
patch '-p1' --no-backup-if-mismatch -d 'web/themes/contrib/gin' < '/var/folders/5_/2c4xzn5x40vglp71rfjyf24m0000gn/T/64f1fade370c0.patch'
Executing command (CWD): patch '-p1' --no-backup-if-mismatch -d 'web/themes/contrib/gin' < '/var/folders/5_/2c4xzn5x40vglp71rfjyf24m0000gn/T/64f1fade370c0.patch'
patching file 'includes/table.theme'
Reversed (or previously applied) patch detected!  Assume -R? [y]
@sean-e-dietrich sean-e-dietrich added the bug Inconsistencies or issues which will cause a problem for users or implementors. label Sep 1, 2023
@markfullmer
Copy link

Our team experiences this issue specifically on MacOS. In our case using the gpatch service (installed via Homebrew, brew install gpatch, for MacOS) allowed the patch process to continue.

@cweagans
Copy link
Owner

Please consider trying out Composer Patches 2.x. The 1.x versions have extremely limited support right now.

Installing gpatch is always a good idea for 1.x.

For this specific scenario, if you look at the issue where that patch came from (https://www.drupal.org/node/3373987), you'll see that it's a duplicate of https://www.drupal.org/project/gin/issues/3372776, which was fixed in Gin 3.0.0-rc4. Since you're installing rc5, you already have this fix and no longer need that patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Inconsistencies or issues which will cause a problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

3 participants