Open RuiNtD opened 1 year ago
Does it work if you run topgrade
inside the WSL?
Yeah, it does.
The .profile (and maybe .bashrc?) aren't being executed.
Then I guess your judgment is right, the shell rc file is not being sourced, maybe WSL spawns a login shell or something, will debug this when I have time
Same goes to rustup, flutter, npm etc. installed in WSL that topgrade supposedly supports. But the issue with Homebrew seems a bit different from the rest. When running topgrade within WSL itself, it still fails, whereas others are updated as expected when running topgrade directly inside WSL (except for gcloud CLI in my case).
When running topgrade from my Windows host, the upgrade summary for WSL portion is:
―― (Ubuntu) 19:11:03 - Summary ―――――――――――――――――――――――――――――――――――――――――――――――――
System update: OK
config-update: OK
yadm: OK
pip3: OK
gcloud: FAILED
snap: OK
Restarts: OK
(Unrelated or separate issue: gcloud
installed via the official shell script keeps having issues to be updated for some reasons.)
When running topgrade inside WSL itself, here's the summary:
―― 19:10:24 - Summary ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
System update: OK
config-update: OK
Brew: FAILED
yadm: OK
rustup: OK
Flutter: OK
pip3: OK
npm: OK
gcloud: OK
GitHub CLI Extensions: OK
snap: OK
Restarts: OK
Here is the output for Homebrew section when running topgrade in WSL (I had to issue CTRL+C to interrupt it from being seemingly stuck):
―― 19:08:25 - Brew ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
fatal: couldn't find remote ref refs/heads/master
^C
Retry? (y)es/(N)o/(s)hell/(q)uit
But the issue with Homebrew seems a bit different from the rest. When running top grade within WSL itself, it still fails,
Kinda think this is another issue, mind opening an issue for this?
But the issue with Homebrew seems a bit different from the rest. When running top grade within WSL itself, it still fails,
Kinda think this is another issue, mind opening an issue for this?
Created #563
Erroneous Behavior
When using
topgrade
from Windows, during the WSL step, the Brew and NPM (installed with Brew) steps within WSL are skipped.Expected Behavior
Brew is updated, as well as any NPM packages.
Steps to reproduce
brew install node
topgrade
Possible Cause (Optional)
The
.profile
(and maybe.bashrc
?) aren't being executed.Problem persists without calling from topgrade
Additional Details
Operation System/Version Ubuntu 22.04.2 LTS running on WSL
Installation
cargo install topgrade
Topgrade version (
topgrade -V
) Topgrade 12.0.2Verbose Output (
topgrade -v
)