Skip to content

517: fix inability to provide sudo prompt when using "pie install" on a PHP project#519

Open
asgrim wants to merge 1 commit intophp:1.3.xfrom
asgrim:517-change-pie-install-to-invoke-subcommand-for-interactivity
Open

517: fix inability to provide sudo prompt when using "pie install" on a PHP project#519
asgrim wants to merge 1 commit intophp:1.3.xfrom
asgrim:517-change-pie-install-to-invoke-subcommand-for-interactivity

Conversation

@asgrim
Copy link
Contributor

@asgrim asgrim commented Feb 27, 2026

Fixes #517

Previously, the pie install would invoke another instance of pie. However, since this would always be run in a non-interactive shell, sudo prompts will never work. I've changed this instead to use InvokeSubCommand which copies the input params into the sub command, so it is all run in the same PIE process and therefore retains the interactivity (or lack thereof) of the shell it was invoked from.

PR submitter checklist

… a PHP project

Previously, the `pie install` would invoke another instance of `pie`. However,
since this would always be run in a non-interactive shell, `sudo` prompts will
never work. I've changed this instead to use `InvokeSubCommand` which copies
the input params into the sub command, so it is all run in the same PIE process
and therefore retains the interactivity (or lack thereof) of the shell it was
invoked from.
@asgrim asgrim self-assigned this Feb 27, 2026
@asgrim asgrim added the bug Something isn't working label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant