Skip to content

Problem with a different sudo message #1292

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

Open
foozzi opened this issue Feb 13, 2025 · 1 comment
Open

Problem with a different sudo message #1292

foozzi opened this issue Feb 13, 2025 · 1 comment
Assignees
Labels
connectors Connector issues - builtin integrations with other tools.

Comments

@foozzi
Copy link

foozzi commented Feb 13, 2025

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?

@Fizzadar
Copy link
Member

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 Fizzadar self-assigned this Apr 22, 2025
@Fizzadar Fizzadar added the connectors Connector issues - builtin integrations with other tools. label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connectors Connector issues - builtin integrations with other tools.
Projects
None yet
Development

No branches or pull requests

2 participants