topgrade icon indicating copy to clipboard operation
topgrade copied to clipboard

Steps are skipped in WSL when run from Windows

Open RuiNtD opened this issue 1 year ago • 1 comments

What did you expect to happen?

The same steps are performed within WSL when Topgrade is run from Windows compared to when run directly in WSL.

What actually happened?

The Brew and rustup steps are skipped when run from Windows.

Additional Details

  • Which operating system or Linux distribution are you using? Windows 11 Pro and Ubuntu 20.04.4 LTS
  • How did you install Topgrade? cargo on both Windows and Ubuntu
  • Which version are you running? 9.0.1 on both Windows and Ubuntu

Running --dry-run produced C:\Windows\System32\wsl.EXE -d Ubuntu bash -c TOPGRADE_PREFIX=Ubuntu exec /home/ethan/.cargo/bin/topgrade which doesn't work. I had to add quotes after -c.

 2022-07-31T19:10:39.896Z DEBUG topgrade::config > Configuration at /home/ethan/.config/topgrade.toml
 2022-07-31T19:10:39.896Z DEBUG topgrade::config > Loaded configuration: ConfigFile { pre_commands: Some({}), post_commands: None, commands: Some({}), git_repos: None, predefined_git_repos: None, disable: Some([Containers, Gem, Node]), ignore_failures: None, remote_topgrades: None, remote_topgrade_path: None, ssh_arguments: None, git_arguments: None, tmux_arguments: None, set_title: None, display_time: None, assume_yes: None, yay_arguments: None, no_retry: None, run_in_tmux: None, cleanup: None, notify_each_step: None, accept_all_windows_updates: None, bashit_branch: None, only: None, composer: Some(Composer { self_update: None }), brew: Some(Brew { greedy_cask: None }), linux: Some(Linux { yay_arguments: None, arch_package_manager: None, show_arch_news: None, trizen_arguments: None, pikaur_arguments: None, dnf_arguments: None, apt_arguments: None, enable_tlmgr: None, redhat_distro_sync: None, rpm_ostree: None, emerge_sync_flags: None, emerge_update_flags: None }), git: Some(Git { max_concurrency: None, arguments: None, repos: None, pull_predefined: None }), windows: Some(Windows { accept_all_updates: None, self_rename: None, open_remotes_in_new_terminal: None, enable_winget: None }), npm: Some(NPM { use_sudo: None }), vim: None, firmware: Some(Firmware { upgrade: None }), vagrant: None, flatpak: Some(Flatpak { use_sudo: None }) }
 2022-07-31T19:10:40.021Z DEBUG topgrade::utils  > Cannot find "notify-send"
 2022-07-31T19:10:40.021Z DEBUG topgrade         > Version: 9.0.1
 2022-07-31T19:10:40.021Z DEBUG topgrade         > OS: x86_64-unknown-linux-gnu
 2022-07-31T19:10:40.021Z DEBUG topgrade         > Args { inner: ["/home/ethan/.cargo/bin/topgrade", "-v"] }
 2022-07-31T19:10:40.021Z DEBUG topgrade         > Binary path: Ok("/home/ethan/.cargo/bin/topgrade")
 2022-07-31T19:10:40.021Z DEBUG topgrade         > Self Update: false
 2022-07-31T19:10:40.021Z DEBUG topgrade::utils  > Detected "/usr/bin/git" as "git"
 2022-07-31T19:10:40.138Z DEBUG topgrade::utils  > Cannot find "doas"
 2022-07-31T19:10:40.138Z DEBUG topgrade::utils  > Detected "/usr/bin/sudo" as "sudo"
 2022-07-31T19:10:40.263Z DEBUG topgrade::utils  > Cannot find "pwsh"
 2022-07-31T19:10:40.406Z DEBUG topgrade::utils  > Cannot find "powershell"
 2022-07-31T19:10:40.406Z DEBUG topgrade::runner > Step "System update"

―― (Ubuntu) 13:10:40 - System update ――――――――――――――――――――――――――――――――――――――――――― 2022-07-31T19:10:40.532Z DEBUG topgrade::utils > Cannot find "apt-fast" 2022-07-31T19:10:40.675Z DEBUG topgrade::utils > Cannot find "nala" 2022-07-31T19:10:40.675Z DEBUG topgrade::executor > Running "/usr/bin/sudo" "apt-get" "update" [sudo] password for ethan: Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://download.zerotier.com/debian/focal focal InRelease Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease Hit:4 https://packages.microsoft.com/repos/edge stable InRelease Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:6 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done 2022-07-31T19:10:51.283Z DEBUG topgrade::executor > Running "/usr/bin/sudo" "apt-get" "dist-upgrade" Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2022-07-31T19:10:51.905Z DEBUG topgrade::runner > Step "config-update" 2022-07-31T19:10:52.174Z DEBUG topgrade::runner > Step "Brew" 2022-07-31T19:10:52.294Z DEBUG topgrade::runner > Step "yadm" 2022-07-31T19:10:52.409Z DEBUG topgrade::runner > Step "nix" 2022-07-31T19:10:52.533Z DEBUG topgrade::runner > Step "home-manager" 2022-07-31T19:10:52.651Z DEBUG topgrade::runner > Step "asdf" 2022-07-31T19:10:52.770Z DEBUG topgrade::runner > Step "pkgin" 2022-07-31T19:10:52.885Z DEBUG topgrade::utils > Path "/home/ethan/.config/emacs" doesn't exist 2022-07-31T19:10:52.885Z DEBUG topgrade::utils > Path "/home/ethan/.emacs.d" doesn't exist 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.doom.d does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.vim does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/nvim does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.ideavimrc does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.intellimacs does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.zshrc does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.tmux does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/fish does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/openbox does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/bspwm does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/i3 does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::steps::git > /home/ethan/.config/sway does not exists 2022-07-31T19:10:52.885Z DEBUG topgrade::runner > Step "Git repositories" 2022-07-31T19:10:52.885Z DEBUG topgrade::runner > Step "zr" 2022-07-31T19:10:53.005Z DEBUG topgrade::runner > Step "antibody" 2022-07-31T19:10:53.126Z DEBUG topgrade::runner > Step "antigen" 2022-07-31T19:10:53.251Z DEBUG topgrade::runner > Step "zgenom" 2022-07-31T19:10:53.382Z DEBUG topgrade::runner > Step "zplug" 2022-07-31T19:10:53.511Z DEBUG topgrade::runner > Step "zinit" 2022-07-31T19:10:53.637Z DEBUG topgrade::runner > Step "zi" 2022-07-31T19:10:53.757Z DEBUG topgrade::runner > Step "zim" 2022-07-31T19:10:53.877Z DEBUG topgrade::runner > Step "oh-my-zsh" 2022-07-31T19:10:54.013Z DEBUG topgrade::runner > Step "fisher" 2022-07-31T19:10:54.133Z DEBUG topgrade::runner > Step "bash-it" 2022-07-31T19:10:54.133Z DEBUG topgrade::runner > Step "oh-my-fish" 2022-07-31T19:10:54.273Z DEBUG topgrade::runner > Step "fish-plug" 2022-07-31T19:10:54.418Z DEBUG topgrade::runner > Step "tmux" 2022-07-31T19:10:54.418Z DEBUG topgrade::runner > Step "TLDR" 2022-07-31T19:10:54.550Z DEBUG topgrade::runner > Step "pearl" 2022-07-31T19:10:54.680Z DEBUG topgrade::runner > Step "Gnome Shell Extensions" 2022-07-31T19:10:54.680Z DEBUG topgrade::utils > Detected "/usr/bin/gdbus" as "gdbus" 2022-07-31T19:10:54.680Z DEBUG topgrade::runner > Step "SDKMAN!" 2022-07-31T19:10:54.680Z DEBUG topgrade::utils > Detected "/usr/bin/bash" as "bash" 2022-07-31T19:10:54.680Z DEBUG topgrade::runner > Step "apm" 2022-07-31T19:10:54.814Z DEBUG topgrade::runner > Step "fossil" 2022-07-31T19:10:54.950Z DEBUG topgrade::runner > Step "rustup" 2022-07-31T19:10:55.090Z DEBUG topgrade::runner > Step ".NET" 2022-07-31T19:10:55.223Z DEBUG topgrade::runner > Step "choosenim" 2022-07-31T19:10:55.353Z DEBUG topgrade::runner > Step "cargo" 2022-07-31T19:10:55.353Z DEBUG topgrade::utils > Path "/home/ethan/.cargo" exists 2022-07-31T19:10:55.480Z DEBUG topgrade::utils > Path "/home/ethan/.cargo/bin/cargo" exists 2022-07-31T19:10:55.480Z DEBUG topgrade::utils > Path "/home/ethan/.cargo/.crates.toml" exists

―― (Ubuntu) 13:10:55 - Cargo ――――――――――――――――――――――――――――――――――――――――――――――――――― 2022-07-31T19:10:55.627Z DEBUG topgrade::utils > Path "/home/ethan/.cargo/bin/cargo-install-update" exists 2022-07-31T19:10:55.627Z DEBUG topgrade::executor > Running "/home/ethan/.cargo/bin/cargo-install-update" "install-update" "--git" "--all" Updating registry 'https://github.com/rust-lang/crates.io-index'

Package Installed Latest Needs update cargo-update v8.1.4 v8.1.4 No topgrade v9.0.1 v9.0.1 No

No packages need updating. Package Installed Latest Needs update

No git packages need updating. Overall updated 0 packages. 2022-07-31T19:10:57.121Z DEBUG topgrade::runner > Step "Flutter" 2022-07-31T19:10:57.259Z DEBUG topgrade::runner > Step "Go" 2022-07-31T19:10:57.390Z DEBUG topgrade::runner > Step "Emacs" 2022-07-31T19:10:57.524Z DEBUG topgrade::runner > Step "opam" 2022-07-31T19:10:57.659Z DEBUG topgrade::runner > Step "vcpkg" 2022-07-31T19:10:57.789Z DEBUG topgrade::runner > Step "pipx" 2022-07-31T19:10:57.917Z DEBUG topgrade::runner > Step "conda" 2022-07-31T19:10:58.051Z DEBUG topgrade::runner > Step "pip3" 2022-07-31T19:10:58.051Z DEBUG topgrade::utils > Detected "/usr/bin/python3" as "python3" 2022-07-31T19:10:58.072Z TRACE topgrade::executor > Output of "/usr/bin/python3" "-m" "pip": Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "/usr/bin/python3: No module named pip\n" } 2022-07-31T19:10:58.072Z DEBUG topgrade::runner > Step "stack" 2022-07-31T19:10:58.209Z DEBUG topgrade::runner > Step "tlmgr" 2022-07-31T19:10:58.209Z DEBUG topgrade::runner > Step "myrepos" 2022-07-31T19:10:58.343Z DEBUG topgrade::runner > Step "chezmoi" 2022-07-31T19:10:58.475Z DEBUG topgrade::runner > Step "jetpack" 2022-07-31T19:10:58.611Z DEBUG topgrade::runner > Step "vim" 2022-07-31T19:10:58.611Z DEBUG topgrade::utils > Detected "/usr/bin/vim" as "vim" 2022-07-31T19:10:58.614Z TRACE topgrade::executor > Output of "/usr/bin/vim" "--version": Output { status: ExitStatus(unix_wait_status(0)), stdout: "VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)\nIncluded patches: 1-2269, 3612, 3625, 3669, 3741\nModified by [email protected]\nCompiled by [email protected]\nHuge version without GUI. Features included (+) or not (-):\n+acl -farsi -mouse_sysmouse -tag_any_white\n+arabic +file_in_path +mouse_urxvt -tcl\n+autocmd +find_in_path +mouse_xterm +termguicolors\n+autochdir +float +multi_byte +terminal\n-autoservername +folding +multi_lang +terminfo\n-balloon_eval -footer -mzscheme +termresponse\n+balloon_eval_term +fork() +netbeans_intg +textobjects\n-browse +gettext +num64 +textprop\n++builtin_terms -hangul_input +packages +timers\n+byte_offset +iconv +path_extra +title\n+channel +insert_expand -perl -toolbar\n+cindent +job +persistent_undo +user_commands\n-clientserver +jumplist +postscript +vartabs\n-clipboard +keymap +printer +vertsplit\n+cmdline_compl +lambda +profile +virtualedit\n+cmdline_hist +langmap -python +visual\n+cmdline_info +libcall +python3 +visualextra\n+comments +linebreak +quickfix +viminfo\n+conceal +lispindent +reltime +vreplace\n+cryptv +listcmds +rightleft +wildignore\n+cscope +localmap -ruby +wildmenu\n+cursorbind -lua +scrollbind +windows\n+cursorshape +menu +signs +writebackup\n+dialog_con +mksession +smartindent -X11\n+diff +modify_fname +sound -xfontset\n+digraphs +mouse +spell -xim\n-dnd -mouseshape +startuptime -xpm\n-ebcdic +mouse_dec +statusline -xsmp\n+emacs_tags +mouse_gpm -sun_workshop -xterm_clipboard\n+eval -mouse_jsbterm +syntax -xterm_save\n+ex_extra +mouse_netterm +tag_binary \n+extra_search +mouse_sgr -tag_old_static \n system vimrc file: "$VIM/vimrc"\n user vimrc file: "$HOME/.vimrc"\n 2nd user vimrc file: "~/.vim/vimrc"\n user exrc file: "$HOME/.exrc"\n defaults file: "$VIMRUNTIME/defaults.vim"\n fall-back for $VIM: "/usr/share/vim"\nCompilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fdebug-prefix-map=/build/vim-9EpYYi/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 \nLinking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lcanberra -lacl -lattr -lgpm -ldl -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm \n", stderr: "" } 2022-07-31T19:10:58.614Z DEBUG topgrade::runner > Step "Neovim" 2022-07-31T19:10:58.757Z DEBUG topgrade::runner > Step "The Ultimate vimrc" 2022-07-31T19:10:58.757Z DEBUG topgrade::runner > Step "voom" 2022-07-31T19:10:58.889Z DEBUG topgrade::runner > Step "Kakoune" 2022-07-31T19:10:59.033Z DEBUG topgrade::runner > Step "deno" 2022-07-31T19:10:59.164Z DEBUG topgrade::runner > Step "composer" 2022-07-31T19:10:59.295Z DEBUG topgrade::runner > Step "krew" 2022-07-31T19:10:59.430Z DEBUG topgrade::runner > Step "haxelib" 2022-07-31T19:10:59.564Z DEBUG topgrade::runner > Step "sheldon" 2022-07-31T19:10:59.688Z DEBUG topgrade::runner > Step "rtcl" 2022-07-31T19:10:59.824Z DEBUG topgrade::runner > Step "bin" 2022-07-31T19:10:59.968Z DEBUG topgrade::runner > Step "gcloud" 2022-07-31T19:11:00.114Z DEBUG topgrade::runner > Step "micro" 2022-07-31T19:11:00.256Z DEBUG topgrade::runner > Step "raco" 2022-07-31T19:11:00.398Z DEBUG topgrade::runner > Step "spicetify" 2022-07-31T19:11:00.531Z DEBUG topgrade::runner > Step "GitHub CLI Extensions" 2022-07-31T19:11:00.670Z DEBUG topgrade::runner > Step "deb-get" 2022-07-31T19:11:00.823Z DEBUG topgrade::runner > Step "toolbx" 2022-07-31T19:11:01.003Z DEBUG topgrade::runner > Step "Flatpak" 2022-07-31T19:11:01.136Z DEBUG topgrade::runner > Step "snap" 2022-07-31T19:11:01.136Z DEBUG topgrade::utils > Detected "/usr/bin/snap" as "snap" 2022-07-31T19:11:01.136Z DEBUG topgrade::runner > Step "pacstall" 2022-07-31T19:11:01.271Z DEBUG topgrade::runner > Step "pihole" 2022-07-31T19:11:01.403Z DEBUG topgrade::runner > Step "Firmware upgrades" 2022-07-31T19:11:01.404Z DEBUG topgrade::utils > Detected "/usr/bin/fwupdmgr" as "fwupdmgr" 2022-07-31T19:11:01.404Z TRACE topgrade::executor > Output of "uname" "-r": Output { status: ExitStatus(unix_wait_status(0)), stdout: "5.10.102.1-microsoft-standard-WSL2\n", stderr: "" } 2022-07-31T19:11:01.404Z DEBUG topgrade::steps::os::linux > Uname output: 5.10.102.1-microsoft-standard-WSL2

2022-07-31T19:11:01.404Z DEBUG topgrade::runner > Step "Restarts" 2022-07-31T19:11:01.543Z DEBUG topgrade::runner > Step "Vagrant boxes"

―― (Ubuntu) 13:11:01 - Summary ――――――――――――――――――――――――――――――――――――――――――――――――― System update: OK config-update: OK Brew: SKIPPED: Cannot find "brew" in PATH yadm: SKIPPED: Cannot find "yadm" in PATH nix: SKIPPED: Cannot find "nix" in PATH home-manager: SKIPPED: Cannot find "home-manager" in PATH asdf: SKIPPED: Cannot find "asdf" in PATH pkgin: SKIPPED: Cannot find "pkgin" in PATH Git repositories: SKIPPED: No repositories to pull zr: SKIPPED: Cannot find "zsh" in PATH antibody: SKIPPED: Cannot find "zsh" in PATH antigen: SKIPPED: Cannot find "zsh" in PATH zgenom: SKIPPED: Cannot find "zsh" in PATH zplug: SKIPPED: Cannot find "zsh" in PATH zinit: SKIPPED: Cannot find "zsh" in PATH zi: SKIPPED: Cannot find "zsh" in PATH zim: SKIPPED: Cannot find "zsh" in PATH oh-my-zsh: SKIPPED: Cannot find "zsh" in PATH fisher: SKIPPED: Cannot find "fish" in PATH bash-it: SKIPPED: Path "/home/ethan/.bash_it" doesn't exist oh-my-fish: SKIPPED: Cannot find "fish" in PATH fish-plug: SKIPPED: Cannot find "fish" in PATH tmux: SKIPPED: Path "/home/ethan/.tmux/plugins/tpm/bin/update_plugins" doesn't exist TLDR: SKIPPED: Cannot find "tldr" in PATH pearl: SKIPPED: Cannot find "pearl" in PATH Gnome Shell Extensions: SKIPPED: Desktop doest not appear to be gnome SDKMAN!: SKIPPED: Path "/home/ethan/.sdkman/bin/sdkman-init.sh" doesn't exist apm: SKIPPED: Cannot find "apm" in PATH fossil: SKIPPED: Cannot find "fossil" in PATH rustup: SKIPPED: Cannot find "rustup" in PATH .NET: SKIPPED: Cannot find "dotnet" in PATH choosenim: SKIPPED: Cannot find "choosenim" in PATH cargo: OK Flutter: SKIPPED: Cannot find "flutter" in PATH Go: SKIPPED: Cannot find "go" in PATH Emacs: SKIPPED: Cannot find "emacs" in PATH opam: SKIPPED: Cannot find "opam" in PATH vcpkg: SKIPPED: Cannot find "vcpkg" in PATH pipx: SKIPPED: Cannot find "pipx" in PATH conda: SKIPPED: Cannot find "conda" in PATH pip3: SKIPPED: pip does not exists stack: SKIPPED: Cannot find "stack" in PATH tlmgr: SKIPPED: tlmgr must be explicity enabled in the configuration to run in Android/Linux myrepos: SKIPPED: Cannot find "mr" in PATH chezmoi: SKIPPED: Cannot find "chezmoi" in PATH jetpack: SKIPPED: Cannot find "jetpack" in PATH vim: SKIPPED: Path "/home/ethan/.vim/vimrc" doesn't exist Neovim: SKIPPED: Cannot find "nvim" in PATH The Ultimate vimrc: SKIPPED: Path "/home/ethan/.vim_runtime" doesn't exist voom: SKIPPED: Cannot find "voom" in PATH Kakoune: SKIPPED: Cannot find "kak" in PATH deno: SKIPPED: Cannot find "deno" in PATH composer: SKIPPED: Cannot find "composer" in PATH krew: SKIPPED: Cannot find "kubectl-krew" in PATH haxelib: SKIPPED: Cannot find "haxelib" in PATH sheldon: SKIPPED: Cannot find "sheldon" in PATH rtcl: SKIPPED: Cannot find "rupdate" in PATH bin: SKIPPED: Cannot find "bin" in PATH gcloud: SKIPPED: Cannot find "gcloud" in PATH micro: SKIPPED: Cannot find "micro" in PATH raco: SKIPPED: Cannot find "raco" in PATH spicetify: SKIPPED: Cannot find "spicetify" in PATH GitHub CLI Extensions: SKIPPED: Cannot find "gh" in PATH deb-get: SKIPPED: Cannot find "deb-get" in PATH toolbx: SKIPPED: Cannot find "toolbox" in PATH Flatpak: SKIPPED: Cannot find "flatpak" in PATH snap: SKIPPED: Snapd socket does not exist pacstall: SKIPPED: Cannot find "pacstall" in PATH pihole: SKIPPED: Cannot find "pihole" in PATH Firmware upgrades: SKIPPED: Should not run in WSL Restarts: SKIPPED: Cannot find "needrestart" in PATH Vagrant boxes: SKIPPED: Cannot find "vagrant" in PATH 2022-07-31T19:11:01.688Z DEBUG topgrade::terminal > Desktop notification: Topgrade finished successfully

RuiNtD avatar Jul 31 '22 19:07 RuiNtD

To add to the list: my home-manager flake is also silently skipped inside my Fedora distro on WSL but is updated on my Arch Linux system

worldofgeese avatar Sep 01 '22 14:09 worldofgeese