Closed InnocentZero closed 8 months ago
If possible, I'd like to contribute a fix myself to this.
This step was added in #263, gentle ping on @sandalbanditten, can you guys figure out if sudo is needed or not?
Hi @SteveLauC @sandalbanditten, any update on this?
Erroneous Behavior
Topgrade runs
helix --grammar fetch
as sudo, installing all 163 grammars as root.Expected Behavior
Topgrade runs
helix --grammar fetch
as the regular user, installing only those specified in languages.tomlSteps to reproduce
topgrade --only helix
topgrade
Possible Cause (Optional)
in file src/steps/generic.rs,I do not understand why the command needs to be executed with
sudo
privilege there. Helix is just a text editor, it has no need of having elevated privileges for fetching grammars.Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your remote host
Configuration file (Optional)
Additional Details
Arch linux on hardened kernel version 6.7.4
cargo
topgrade -V
)Verbose Output (
topgrade -v
)After which it prompts me for password.