-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
When called from topgrade cargo-install-update
under WSL fails to find some file or directory.
#262
Comments
Looks like it execs for env in opt.env_variables() {
let mut splitted = env.split('=');
let var = splitted.next().unwrap();
let value = splitted.next().unwrap();
env::set_var(var, value);
} in main.rs but I'm assuming you'd post something here if you had something offensive in there. The ENOENT means it couldn't run cargo. What does |
I've move the executable out of the way, placed wrapper bash script in between, and downgraded fd-find. For reference:
This is the output of
|
It seems to try everything but the kitchensink, and /home/henk/.cargo/bin/cargo But it does try /mnt/c/Users/henk/.cargo/bin/cargo |
For reference, the output of
|
My normal logged-in PATH contains /home/henk/.cargo/bin (twice, sic) at the very beginning. The above PATH by topgrade, does not. I'll ask them how proceed. Though I guess |
Topgrade is a tool that just batch-executes lots of package managers updaters. In this case it starts an Ubuntu Windows Subsystem for Linux container/VM, happens in WSL1 and WSL2. There it runs cargo-install-update, then the below log is shown.
When I tell topgrade to drop to shell,
cargo-install-update install-update --all
functions just fine. I'm wondering if some more diagnostics can be added in that area of the code. Currently I don't know what it didn't find.The first line of the next log and the last line is by topgrade.
cargo-update-13.4.0/src/main.rs:285 scope is at
cargo-update/src/main.rs
Lines 228 to 285 in bceb912
And on the topgrade side: https://github.com/topgrade-rs/topgrade/blob/07118fa0d25aba573c36a874375caea8c768cd33/src/main.rs#L353
https://github.com/topgrade-rs/topgrade/blob/07118fa0d25aba573c36a874375caea8c768cd33/src/steps/generic.rs#L40-L73
The text was updated successfully, but these errors were encountered: