-
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
fix: zinit default install location #625
Conversation
cc @karman011, here is a build for |
@SteveLauC |
Friendly ping the author of #614 @domglusk, could you please give it a look?
Seems we should do this, but I am curious what is the difference between
From their README, it seems that they are the same thing |
Oh, I am sorry, they are different things: By default, I kinda think we don't need to check |
Well, I tested the command topgrade uses to update [root@ef5a35a4063d]~# ./topgrade --only shell
── 09:27:56 - zinit ────────────────────────────────────────────────────────────
zinit failed:
0: Command failed: `/usr/bin/zsh -i -c 'source /root/.zshrc && zinit self-update && zinit update --all -p'`
1: `/usr/bin/zsh` failed: exit status: 1
Location:
src/steps/zsh.rs:134
Retry? (y)es/(N)o/(s)hell/(q)uit
── 09:27:57 - Summary ──────────────────────────────────────────────────────────
zinit: FAILED
[root@ef5a35a4063d]~# But executing [root@ef5a35a4063d]~# zinit self-update && zinit update --all -p
[self-update] fetching latest changes from main branch
From https://github.com/zdharma-continuum/zinit
* branch main -> FETCH_HEAD
Already up to date.
[self-update] compiling zinit via zcompile
[self-update] reloading zinit for the current session
[self-update] updating zinit repository
[self-update] fetching latest changes from main branch
Parallel Update Starts Now…
The update took 3.68 seconds
[root@ef5a35a4063d]~# echo $?
0 |
I doubt it runs without any issues because I didn't have any plugin installed, then I installed a plugin with |
Let's merge this |
Standards checklist:
CONTRIBUTING.md
cargo build
)cargo fmt
)cargo clippy
)cargo test
)For new steps
--dry-run
option works with this step--yes
option works with this step if it is supported bythe underlying command
If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.
From zinit's README, it seems that they have changed their default install location from
~/.zinit
to~/.local/share/zinit
, making our detection fail, this PR fixes it.