zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
3.15k stars 129 forks source link

[bug]: can not run zinit update #502

Closed tiancheng92 closed 1 year ago

tiancheng92 commented 1 year ago

What happened?

can not run zinit update Xnip2023-04-15_09-04-53

Steps to reproduce

zi update -a ; echo $?
1

➜ zi update ; echo $?
1

➜ zi ls ; echo $?
ERROR: Unknown subcommand: `ls` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
1

➜ zi list-plugins ; echo $?
ERROR: Unknown subcommand: `list-plugins` (it should be one of, e.g.: `load`, `snippet`, `update`, `delete`, …, e.g.: `zinit load username/reponame`) or a for-based command body (i.e.: e.g.: `zinit …ice-spec… for …(plugin or snippet) ID-1 ID-2 ⋯⋯…`). See `help` for a more detailed usage information and the list of the subcommands.
1

➜ zi version
zinit v3.10.0-9-g034e265e (darwin22.1.0_arm64)

Relevant output

No response

Screenshots and recordings

No response

Operating System & Version

OS: darwin22.1.0 | Vendor: apple | Machine: arm | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (arm-apple-darwin22.1.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

vladdoster commented 1 year ago

I just noticed this as well. Working on fix now.

The fix will be a refactor to decouple the update and status commands.

Another bug (of many) related to the commands:

zinit status

image

Attempts to update Zinit.

vladdoster commented 1 year ago

@tiancheng92,

I have update and status subcommands working on branch fix/zinit-update-and-status. Please note, most flags (--all) work, but others (--urge, --reset) do not.

However, it does add the ability to update or get the status of multiple packages at once, whereas before it was just all or one.

If you have time, please try it out.

cd $ZINIT[BIN_DIR]
git pull --all
git checkout fix/zinit-update-and-status
cd -
exec zsh -il
tiancheng92 commented 1 year ago

I tried it, and as you said, the update function is back. @vladdoster

0x7a7a commented 1 year ago

@tiancheng92,

I have update and status subcommands working on branch fix/zinit-update-and-status. Please note, most flags (--all) work, but others (--urge, --reset) do not.

However, it does add the ability to update or get the status of multiple packages at once, whereas before it was just all or one.

If you have time, please try it out.

cd $ZINIT[BIN_DIR]
git pull --all
git checkout fix/zinit-update-and-status
cd -
exec zsh -il

I also met the same problem, and I solved it according to your instructions,thanks. What I want to ask is, will I be in this branch in the future?

0x7a7a commented 1 year ago

I seem to have a new problem. image

vladdoster commented 1 year ago

I seem to have a new problem.

image

@0x7a7a,

If still an issue, open a new issue.

0x7a7a commented 1 year ago

I seem to have a new problem. image

@0x7a7a,

If still an issue, open a new issue.

No more questions now, thanks for your work and reply

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 3.11.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: