Skip to content

Missing dependency for symfony/filesystem #2941

@kkmuffme

Description

@kkmuffme

Describe the bug

https://github.com/aws/aws-sdk-php/blob/master/composer.json

https://github.com/aws/aws-sdk-php/tree/master/src/Script/Composer#removing-unused-services
uses symfony filesystem under the hood though - therefore currently this leads to a fatal error:
https://github.com/aws/aws-sdk-php/blob/master/src/Script/Composer/Composer.php#L24 (https://github.com/aws/aws-sdk-php/blob/master/src/Script/Composer/Composer.php#L6)

Expected Behavior

no error

Current Behavior

Fatal error

Reproduction Steps

https://github.com/aws/aws-sdk-php/tree/master/src/Script/Composer#removing-unused-services

Possible Solution

As a temporary workaround one can install symfony/filesystem as dependency manually

As a permanent solution this package should be added to the SDK dependencies (require, not require-dev)

Additional Information/Context

No response

SDK version used

3.312.0

Environment details (Version of PHP (php -v)? OS name and version, etc.)

8.3.x - error is version independent

Metadata

Metadata

Labels

bugThis issue is a bug.p2This is a standard priority issuequeuedThis issues is on the AWS team's backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions