Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alessandrotesoro opened this issue Sep 16, 2024 · 0 comments
Open

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

alessandrotesoro opened this issue Sep 16, 2024 · 0 comments
Labels

Comments

@alessandrotesoro
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant