Skip to content
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

[bug]: can not run zinit update #502

Closed
1 task done
tiancheng92 opened this issue Apr 15, 2023 · 8 comments · Fixed by #508
Closed
1 task done

[bug]: can not run zinit update #502

tiancheng92 opened this issue Apr 15, 2023 · 8 comments · Fixed by #508
Assignees
Labels
bug Something isn't working released

Comments

@tiancheng92
Copy link

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

  • I agree to follow this project's Code of Conduct
@tiancheng92 tiancheng92 added the bug Something isn't working label Apr 15, 2023
@vladdoster
Copy link
Member

vladdoster commented Apr 15, 2023

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 vladdoster added the in-progress Actively being worked on label Apr 15, 2023
@vladdoster
Copy link
Member

vladdoster commented Apr 15, 2023

@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
Copy link
Author

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

@0x7a7a
Copy link

0x7a7a commented Apr 17, 2023

@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
Copy link

0x7a7a commented Apr 17, 2023

I seem to have a new problem.
image

@vladdoster
Copy link
Member

I seem to have a new problem.

image

@0x7a7a,

If still an issue, open a new issue.

@vladdoster vladdoster removed the in-progress Actively being worked on label Apr 29, 2023
@0x7a7a
Copy link

0x7a7a commented May 4, 2023

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
Copy link

github-actions bot commented May 4, 2023

🎉 This issue has been resolved in version 3.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants