pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Problem with a different sudo message

Open foozzi opened this issue 10 months ago • 1 comments

for example: Image (it's impossible to useyay, for example, or build a package from source on arch linux)

makepkg doesn't allow running under sudo. It then asks for a password...: [sudo] password for user1:

pyinfra cannot process this request because the password prompt is hardcoded.

Are there any solutions?

foozzi avatar Feb 13 '25 19:02 foozzi

The line is showing (https://github.com/pyinfra-dev/pyinfra/blob/3.x/pyinfra/connectors/util.py#L203) but pyinfra is looking at the last line, which here is the WARNING line. Changing pyinfra to look at all lines (from last to first) is probably the best option here.

I'm not a fan of matching the line at all but unfortunately I've yet to come up with something better..

Fizzadar avatar Apr 22 '25 14:04 Fizzadar