-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fails to run "tlmgr" #865
Comments
Any progress, workaround, or feedback? |
Hi, sorry for the late reply!
Topgrade does not specify the full path, it always searches commands in What will happen if you simply do: $ sudo tlmgr update --self --all Does it also error out? I saw that with the successful one, you were using Also, can you do: $ which tlmgr
$ sudo zsh # replace zsh with your shell
$ which tlmgr |
No it doesn't - works correctly.
To ensure the local env vars are set properly (as per my user profile, rather than
Don't know what to tell you - my Macs are on macOS 14 and 15, and |
Ok then,
I was trying to figure out if |
Same as #903, I need a way to check if |
I think it is needed - but it's been quite a while ago, so I don't recall all the details. One thing for sure - |
In some cases it may not be needed. In my car it is necessary. The best would be showing the user to tell topgrade whether to employ |
I just recalled that there are some 'use_sudo' confug entries in Topgrade that allows you to opt-in to sudo, maybe we can use this if it is just tedious and complicated to check if sudo is necessary. |
That sounds good. My only other concern is that Also, in another comment you mentioned Windows. Sorry, I've no clue about Win - only MacOS and Linux. |
The existing |
I don't seem to recall how to add Could you please show how to add |
I guess you are talking about pre_sudo, which is indeed a global one. For pre-step configuration, check out this example: https://github.com/topgrade-rs/topgrade/blob/main/src%2Fsteps%2Fnode.rs#L95 |
Erroneous Behavior
Expected Behavior
Steps to reproduce
A bit hard, as this system is now running Privileged Access Module (doesn't just allow
sudo
based on/etc/sudoers
file).Possible Cause (Optional)
Two problems/differences between successful and unsuccessful invocations that I see is that the successful one (which I ran standalone, not via
topgrade
) did not specify the full path for the apps.Can you make an option to not specify full path? I think I understand the implications.
Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
I don't even know what that means.
Configuration file (Optional)
Additional Details
Operation System/Version: MacOS Sonoma 14.5 with Xcode-15.4 and stable Rust-1.79.
Installation: via
cargo install topgrade
Topgrade version:
Topgrade 15.0.0
Verbose Output (
topgrade -v
)Too verbose to paste (unless you want to go through a 3704 lines in a post), so here it is:
topgr.out.txt
The text was updated successfully, but these errors were encountered: