-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Possibilities to give the command "patches-repatch" options for the composer install #564
Comments
👋 Thanks for the idea! Please remember that this is an open source project - feature requests may or may not be implemented, and if they are, the timeline is unknown. If you need a guaranteed implementation or timeline, sponsorships are welcome! |
Seems reasonable! It'll be a bit until I can work on this, but if you open a PR in the mean time, I'd be glad to review! |
Hi @cweagans, with pleasure! PR is created. |
I was looking if an issue for this problem already exists or not and am lucky to see a PR already. I hope this gets released soon. Another way to think about this would be a "scripts": {
"deploy-staging": [
"git pull -p",
"@composer validate",
"@composer install --optimize-autoloader"
],
"deploy": [
"git pull -p",
"@composer validate",
"@composer install --no-dev --optimize-autoloader"
]
} With the "scripts": {
"pre-install-cmd": [
"@composer patches-repatch --pre-install"
],
"deploy-staging": [
"git pull -p",
"@composer validate",
"@composer install --optimize-autoloader"
],
"deploy": [
"git pull -p",
"@composer validate",
"@composer install --no-dev --optimize-autoloader"
]
} This way |
Verification
composer self-update
)composer update cweagans/composer-patches
)Is your feature request related to a problem?
Currently you have to use the command
patches-repatch
to execute the patches, which then executes the normal Composer install routine.But now you have the problem that you can not use options like
--no-dev
.Describe your proposed solution(s)
The possibility to pass the command
patches-repatch
a new parameter "install-options" with a string in the following format: "--no-dev --no-interactions"From this you can then store the options in the ArrayInput with the value
true
with an explode to " ".Describe alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: