pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: Composer "bin-dir" does not seem to be supported

Open alessandrotesoro opened this issue 1 year ago • 0 comments

What Happened

Setting up a custom "bin-dir" does not seem to be supported.

I have the following in my composer.json file:

{
    "config": {
        "bin-dir": "bin"
    }
}

Binaries are correctly placed under the bin folder at project level however running:

./bin/pest --init

Returns:

 INFO  Unknown option "--init".

Some other options instead do not return anything, they just seem to be "stuck".

If I remove the custom bin-dir, the init command works fine.

How to Reproduce

Add this to the composer.json file:

{
    "config": {
        "bin-dir": "bin"
    }
}

Run

composer install

or

composer require pestphp/pest --dev --with-all-dependencies

Then run

./bin/pest --init

Sample Repository

No response

Pest Version

3.0

PHP Version

8.3

Operation System

macOS

Notes

No response

alessandrotesoro avatar Sep 16 '24 15:09 alessandrotesoro