Skip to content

Don't use default Composer CA bundle if in phar as not included so won't work. #72

@gitlost

Description

@gitlost

From original @swiffer wp-cli/wp-cli#4703

Running WP-CLI 1.5.0 I cannot install new commands via

wp package list / install

failed to open stream: phar error: "vendor/composer/ca-bundle/res/cacert.pem" is not a file in phar

As we don't include Composer's CA bundle in the phar the default "last resort" doesn't work CaBundle.php#L121 so should avoid it. Noticeable particularly on Windows as default paths searched by Composer won't usually find anything.

PR incoming.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions