Skip to content

command get cut when too many options passed on windows #196

@staabm

Description

@staabm

I am aware that the following is not a PHP-Parallel-Lint issue, but I figured I would leave it here so people with a similar problem might find it via github search/googling.

On the phpstan-src repo we use PHP-Parallel-Lint and over time grew a very long list of options, e.g. for using --exclude heavily in our Makefile. While this is not a problem for ubuntu/macOS, recently windows CI started failling with a "Invalid Option" error.
Reason is, that on windows the command line was cut by either windows, github-actions or php itself and the argument parsing in PHP-Parallel-Lint started erroring about unknown options.

In case this use-case is worth supporting, it might make sense to add some kind of config file or similar, so the command line does not need to grew that long and run into platform limits.

I am fine with closing this issue, as this is not very relevant for phpstan-src - we will just stop running this check on windows.

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