Skip to content

Auto require package I do not need #236

Closed
@bobzhangyong

Description

@bobzhangyong

PHP version: x.y.z (hint: php --version)

PHP 7.4.11 (cli) (built: Mar 4 2022 15:04:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Description

My project need a private package petrel/opentelemetry, this package require open-telemetry/opentelemetry version 0.0.17

open-telemetry/opentelemetry require php-http/discovery, php-http/async-client-implementation, psr/http-factory-implementation

In my project ready have private package petrel/http-client provide php-http/async-client-implementation and psr/http-factory-implementation

But when I run composer update, this packages will add to my project automatic, and change my composer.json

        "guzzlehttp/promises": "^1.5",
        "nyholm/psr7": "^1.7",
        "php-http/message-factory": "^1.1",
        "symfony/http-client": "^5.4"

I think the problem is php-http/discovery do not check private provide packge.

Any idea to fix this problem? I can only change petrel/opentelemetry, can not change open-telemetry/opentelemetry

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions