Skip to content
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

Prompt for sudo authorization before building #944

Open
stereomato opened this issue Sep 27, 2024 · 4 comments
Open

Prompt for sudo authorization before building #944

stereomato opened this issue Sep 27, 2024 · 4 comments

Comments

@stereomato
Copy link

Paru does this, iirc. Sometimes I do other stuff with my computer when I leave aura building a package, and as such I always miss the prompt for sudo, only realizing when the Console app gives me a "aura command has finished" notification.

@fosskers
Copy link
Owner

sudo isn't necessary for building, only the final installation, in which it does prompt you for sudo. It sounds like the sudo request is timing out?

@stereomato
Copy link
Author

Yeah, that. Sorry, I got confused in that bit yeah. It times out when asking for installation yes.

@RubenKelevra
Copy link
Contributor

sudo isn't necessary for building, only the final installation, in which it does prompt you for sudo. It sounds like the sudo request is timing out?

Yeah, building complete, user deep at sleep, aura timing out ;)

[sudo] password for ruben: 
sudo: timed out reading password
sudo: a password is required
aura :: A call to pacman -U failed.

Another workaround would be to not fail hard if that happens, but just to wait for an "Enter" by the user to show this prompt again.

However, paru has a nice convenient feature, where it loops a sudo as long as it's building, so it retains the ability to run sudo without a password prompt.

@stereomato
Copy link
Author

yeah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants