-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Allow enabling required PHP extensions only instead of disabling a long list of unwanted PHP extensions #487
Comments
@localheinz
Let me know your thoughts.
That always helps 😀 |
Sounds like a perfect solution for us! |
I have implemented both, please test it with the
extensions: :x
extensions: none, x, y, z |
This works great! Currently testing it in sebastianbergmann/phpunit#4759, and already discovered implicit dependencies on PHP extensions in other projects, see vimeo/psalm#6368! |
Oh wow. @shivammathur would it be an option to consider making this a kind of default behaviour for the next major version? |
@mfn Also, it is very simple to add none in extensions input if required. |
I was thinking |
@williamdes I was a bit busy. Will release this week. |
Released in |
Describe the feature
In sebastianbergmann/phpunit#4747, @sebastianbergmann suggests enabling only required PHP extensions for GitHub Actions, in order to have a clear sense of which PHP extensions are required. By default,
shivammathur/setup-php
has a wide range of PHP extensions enabled, and while it is possible to disable and enable extensions at will, disabling extensions can become quite tedious.For an example, see sebastianbergmann/phpunit#4759.
Can you think of a way that would keep everything as it is right now (for users who currently use
shivammathur/setup-php
while implicitly depending on PHP extensions), and adding an option of some kind that?
Version
v2
.Underlying issue
This would solve the problem where a project has hidden dependencies on PHP extensions in a specific GitHub Actions workflow.
Describe alternatives
We could specify a list of extensions, in the hope that it is exhaustive, and disable and enable at will (see sebastianbergmann/phpunit#4759).
Additional context
n/a
Are you willing to submit a PR?
I might try!
Alternatively, I am happy to send some some money your way, if it helps!
The text was updated successfully, but these errors were encountered: