Open azlekov opened 2 years ago
I tried to put zsh or oh-my-zsh in the config file to exclude it from upgrade.
zsh
oh-my-zsh
Zsh not to be upgraded
Command failed with:
2022-06-24T10:52:02.193Z ERROR topgrade::config > Failed to deserialize /Users/azlekov/.config/topgrade.toml 2022-06-24T10:52:02.193Z ERROR topgrade::config > failed to load configuration: unknown variant `zsh`, expected one of `asdf`, `atom`, `brew_cask`, `brew_formula`, `bin`, `cargo`, `chezmoi`, `chocolatey`, `choosenim`, `composer`, `conda`, `config_update`, `containers`, `custom_commands`, `deb_get`, `deno`, `dotnet`, `emacs`, `firmware`, `flatpak`, `flutter`, `fossil`, `gcloud`, `gem`, `github_cli_extensions`, `git_repos`, `go`, `haxelib`, `gnome_shell_extensions`, `home_manager`, `jetpack`, `kakoune`, `krew`, `macports`, `mas`, `micro`, `myrepos`, `nix`, `node`, `opam`, `pacstall`, `pearl`, `pipx`, `pip3`, `pkg`, `pkgin`, `powershell`, `raco`, `remotes`, `restarts`, `rtcl`, `rustup`, `scoop`, `sdkman`, `sheldon`, `shell`, `snap`, `spicetify`, `stack`, `system`, `tldr`, `tlmgr`, `tmux`, `toolbx`, `vagrant`, `vcpkg`, `vim`, `winget`, `wsl`, `yadm` for key `disable` at line 100 column 1
macOS X
homebrew
2022-06-24T10:56:03.322Z DEBUG topgrade::config > Configuration at /Users/azlekov/.config/topgrade.toml 2022-06-24T10:56:03.323Z ERROR topgrade::config > Failed to deserialize /Users/azlekov/.config/topgrade.toml 2022-06-24T10:56:03.323Z ERROR topgrade::config > failed to load configuration: unknown variant `zsh`, expected one of `asdf`, `atom`, `brew_cask`, `brew_formula`, `bin`, `cargo`, `chezmoi`, `chocolatey`, `choosenim`, `composer`, `conda`, `config_update`, `containers`, `custom_commands`, `deb_get`, `deno`, `dotnet`, `emacs`, `firmware`, `flatpak`, `flutter`, `fossil`, `gcloud`, `gem`, `github_cli_extensions`, `git_repos`, `go`, `haxelib`, `gnome_shell_extensions`, `home_manager`, `jetpack`, `kakoune`, `krew`, `macports`, `mas`, `micro`, `myrepos`, `nix`, `node`, `opam`, `pacstall`, `pearl`, `pipx`, `pip3`, `pkg`, `pkgin`, `powershell`, `raco`, `remotes`, `restarts`, `rtcl`, `rustup`, `scoop`, `sdkman`, `sheldon`, `shell`, `snap`, `spicetify`, `stack`, `system`, `tldr`, `tlmgr`, `tmux`, `toolbx`, `vagrant`, `vcpkg`, `vim`, `winget`, `wsl`, `yadm` for key `disable` at line 100 column 1 2022-06-24T10:56:03.323Z DEBUG topgrade > Version: 9.0.1 2022-06-24T10:56:03.323Z DEBUG topgrade > OS: x86_64-apple-darwin 2022-06-24T10:56:03.323Z DEBUG topgrade > Args { inner: ["topgrade", "-v"] } 2022-06-24T10:56:03.323Z DEBUG topgrade > Binary path: Ok("/usr/local/bin/topgrade") 2022-06-24T10:56:03.323Z DEBUG topgrade > Self Update: false 2022-06-24T10:56:03.323Z DEBUG topgrade::utils > Detected "/usr/local/bin/git" as "git" 2022-06-24T10:56:03.323Z DEBUG topgrade::utils > Cannot find "doas" 2022-06-24T10:56:03.323Z DEBUG topgrade::utils > Detected "/usr/bin/sudo" as "sudo" 2022-06-24T10:56:03.323Z DEBUG topgrade::utils > Cannot find "pwsh" 2022-06-24T10:56:03.323Z DEBUG topgrade::utils > Cannot find "powershell" 2022-06-24T10:56:03.333Z DEBUG topgrade::runner > Step "Brew (ARM)" 2022-06-24T10:56:03.334Z DEBUG topgrade::runner > Step "Brew (Intel)" 2022-06-24T10:56:03.334Z DEBUG topgrade::utils > Detected "/usr/local/bin/brew" as "/usr/local/bin/brew" ―― 13:56:03 - Brew ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 2022-06-24T10:56:03.334Z DEBUG topgrade::executor > Running "/usr/local/bin/brew" "update" Already up-to-date. 2022-06-24T10:56:05.694Z DEBUG topgrade::executor > Running "/usr/local/bin/brew" "upgrade" "--ignore-pinned" "--formula" 2022-06-24T10:56:07.246Z DEBUG topgrade::runner > Step "Brew" 2022-06-24T10:56:07.246Z DEBUG topgrade::utils > Detected "/usr/local/bin/brew" as "brew" 2022-06-24T10:56:07.246Z DEBUG topgrade::runner > Step "Brew Cask (ARM)" 2022-06-24T10:56:07.246Z DEBUG topgrade::runner > Step "Brew Cask (Intel)" 2022-06-24T10:56:07.246Z DEBUG topgrade::utils > Detected "/usr/local/bin/brew" as "/usr/local/bin/brew" ―― 13:56:07 - Brew - Cask ―――――――――――――――――――――――――――――――――――――――――――――――――――――― 2022-06-24T10:56:08.367Z DEBUG topgrade::executor > Running "/usr/local/bin/brew" "upgrade" "--cask" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "Brew Cask" 2022-06-24T10:56:09.703Z DEBUG topgrade::utils > Detected "/usr/local/bin/brew" as "brew" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "MacPorts" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "yadm" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "nix" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "home-manager" 2022-06-24T10:56:09.703Z DEBUG topgrade::runner > Step "asdf" 2022-06-24T10:56:09.703Z DEBUG topgrade::utils > Detected "/usr/local/opt/asdf/bin/asdf" as "asdf" ―― 13:56:09 - asdf ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― 2022-06-24T10:56:09.703Z DEBUG topgrade::executor > Running "/usr/local/opt/asdf/bin/asdf" "update" Update command disabled. Please use the package manager that you used to install asdf to upgrade asdf. 2022-06-24T10:56:09.726Z DEBUG topgrade::executor > Running "/usr/local/opt/asdf/bin/asdf" "plugin" "update" "--all" Updating gradle to master Already on 'master' Your branch is up to date with 'origin/master'. Updating flutter to master Already on 'master' Your branch is up to date with 'origin/master'. Updating maven to master Already on 'master' Your branch is up to date with 'origin/master'. Updating python to master Already on 'master' Your branch is up to date with 'origin/master'. Updating nodejs to master Already on 'master' Your branch is up to date with 'origin/master'. Updating ruby to master Already on 'master' Your branch is up to date with 'origin/master'. 2022-06-24T10:56:10.847Z DEBUG topgrade::runner > Step "pkgin" 2022-06-24T10:56:10.848Z DEBUG topgrade::utils > Path "/Users/azlekov/.config/emacs" doesn't exist 2022-06-24T10:56:10.848Z DEBUG topgrade::utils > Path "/Users/azlekov/.emacs.d" doesn't exist 2022-06-24T10:56:10.848Z DEBUG topgrade::steps::git > /Users/azlekov/.doom.d does not exists 2022-06-24T10:56:10.848Z DEBUG topgrade::steps::git > /Users/azlekov/.vim does not exists 2022-06-24T10:56:10.848Z DEBUG topgrade::steps::git > /Users/azlekov/.config/nvim does not exists 2022-06-24T10:56:10.848Z DEBUG topgrade::steps::git > /Users/azlekov/.ideavimrc does not exists 2022-06-24T10:56:10.848Z DEBUG topgrade::steps::git > /Users/azlekov/.intellimacs does not exists 2022-06-24T10:56:10.849Z DEBUG topgrade::steps::git > /Users/azlekov/.zshrc is a file. Checking /Users/azlekov 2022-06-24T10:56:10.849Z DEBUG topgrade::steps::git > Checking if /Users/azlekov is a git repository 2022-06-24T10:56:10.856Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/.tmux does not exists 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/.config/fish does not exists 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/Library/Application Support/openbox does not exists 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/Library/Application Support/bspwm does not exists 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/Library/Application Support/i3 does not exists 2022-06-24T10:56:10.856Z DEBUG topgrade::steps::git > /Users/azlekov/Library/Application Support/sway does not exists 2022-06-24T10:56:10.857Z DEBUG topgrade::runner > Step "Git repositories" 2022-06-24T10:56:10.857Z DEBUG topgrade::runner > Step "zr" 2022-06-24T10:56:10.857Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.857Z DEBUG topgrade::runner > Step "antibody" 2022-06-24T10:56:10.857Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.858Z DEBUG topgrade::runner > Step "antigen" 2022-06-24T10:56:10.858Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.858Z DEBUG topgrade::utils > Path "/Users/azlekov/.zshrc" exists 2022-06-24T10:56:10.858Z DEBUG topgrade::runner > Step "zgenom" 2022-06-24T10:56:10.858Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.858Z DEBUG topgrade::utils > Path "/Users/azlekov/.zshrc" exists 2022-06-24T10:56:10.858Z DEBUG topgrade::runner > Step "zplug" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Path "/Users/azlekov/.zshrc" exists 2022-06-24T10:56:10.872Z DEBUG topgrade::runner > Step "zinit" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Path "/Users/azlekov/.zshrc" exists 2022-06-24T10:56:10.872Z DEBUG topgrade::runner > Step "zi" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Path "/Users/azlekov/.zshrc" exists 2022-06-24T10:56:10.872Z DEBUG topgrade::runner > Step "zim" 2022-06-24T10:56:10.872Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.985Z TRACE topgrade::executor > Output of "zsh" "-c" "[[ -n ${ZIM_HOME} ]] && print -n ${ZIM_HOME}": Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" } 2022-06-24T10:56:10.985Z DEBUG topgrade::runner > Step "oh-my-zsh" 2022-06-24T10:56:10.986Z DEBUG topgrade::utils > Detected "/usr/local/bin/zsh" as "zsh" 2022-06-24T10:56:10.986Z DEBUG topgrade::utils > Path "/Users/azlekov/.oh-my-zsh" exists ―― 13:56:10 - oh-my-zsh ―――――――――――――――――――――――――――――――――――――――――――――――――――――――― 2022-06-24T10:56:11.057Z TRACE topgrade::executor > Output of "zsh" "-c" "test $ZSH_CUSTOM && echo -n $ZSH_CUSTOM": Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" } 2022-06-24T10:56:11.057Z DEBUG topgrade::steps::zsh > Running zsh returned exit status: 1: . Using default path: /Users/azlekov/.oh-my-zsh/custom 2022-06-24T10:56:11.057Z DEBUG topgrade::steps::zsh > oh-my-zsh custom dir: /Users/azlekov/.oh-my-zsh/custom 2022-06-24T10:56:11.058Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom is a git repository 2022-06-24T10:56:11.065Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.066Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/plugins is a git repository 2022-06-24T10:56:11.072Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.072Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/plugins/zsh-autosuggestions is a git repository 2022-06-24T10:56:11.079Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.079Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/plugins/example is a git repository 2022-06-24T10:56:11.085Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.086Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/plugins/zsh-completions is a git repository 2022-06-24T10:56:11.092Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.092Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/plugins/fast-syntax-highlighting is a git repository 2022-06-24T10:56:11.103Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.103Z DEBUG topgrade::steps::git > /Users/azlekov/.oh-my-zsh/custom/example.zsh is a file. Checking /Users/azlekov/.oh-my-zsh/custom 2022-06-24T10:56:11.103Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom is a git repository 2022-06-24T10:56:11.110Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.110Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/themes is a git repository 2022-06-24T10:56:11.116Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.116Z DEBUG topgrade::steps::git > /Users/azlekov/.oh-my-zsh/custom/themes/example.zsh-theme is a file. Checking /Users/azlekov/.oh-my-zsh/custom/themes 2022-06-24T10:56:11.116Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/themes is a git repository 2022-06-24T10:56:11.122Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.122Z DEBUG topgrade::steps::git > Checking if /Users/azlekov/.oh-my-zsh/custom/themes/powerlevel10k is a git repository 2022-06-24T10:56:11.129Z TRACE topgrade::executor > Output of "/usr/local/bin/git" "rev-parse" "--show-toplevel": Output { status: ExitStatus(unix_wait_status(32768)), stdout: "", stderr: "fatal: not a git repository (or any of the parent directories): .git\n" } 2022-06-24T10:56:11.129Z DEBUG topgrade::executor > Running "zsh" "/Users/azlekov/.oh-my-zsh/tools/upgrade.sh" fatal: not a git repository (or any of the parent directories): .git fatal: not in a git directory fatal: not in a git directory fatal: not in a git directory fatal: not in a git directory fatal: not in a git directory fatal: not in a git directory fatal: --local can only be used inside a git repository fatal: --local can only be used inside a git repository fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git 2022-06-24T10:56:11.304Z DEBUG topgrade::runner > Step "oh-my-zsh" failed: exit status: 1 2022-06-24T10:56:11.304Z DEBUG topgrade::terminal > Desktop notification: oh-my-zsh failed Retry? (y)es/(N)o/(s)hell/(q)uit
Refs #888
I tried to put
zsh
oroh-my-zsh
in the config file to exclude it from upgrade.What did you expect to happen?
Zsh not to be upgraded
What actually happened?
Command failed with:
Additional details
macOS X
homebrew