Skip to content

Classmap issue after update to 2.1.7 #10102

@Webonaute

Description

@Webonaute

I just upgraded to composer 2.1.7 from 2.1.6 and composer classmap cache stopped working or there is some breaking change in new version.

any subsequent command have error like :
Noticed exception 'Error' with message 'Class '\Contract\V1\Config\GPBMetadata\Config' not found' in /var/www/project/vendor/someVendor/Contract/V1/Config/Config.php

only change is upgrading composer to 2.1.7.

here is the command we use in our automations scripts:
su -p -c "composer dump-autoload --optimize --classmap-authoritative --apcu" www-data

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions