Open jankatins opened 1 year ago
For some reason the original problem in #467 is back, but the workaround for #467 is still in place:
λ cat ~/.local/share/zinit/plugins/zdharma-continuum---zinit-annex-patch-dl/z-a-patch-dl.plugin.zsh | grep hook:atpull
hook:atpull-20 \
Ok, found the problem and it's me: the problem is that the above update line does not register the annex (as the .zshrc
is not run) and therefore the dl part is silently ignored. Using
zsh -c "source ~/.zshrc && source /Users/jankatins/.local/share/zinit/zinit.git/zinit.zsh && zinit update junegunn/fzf"
fixes the problem for me...
Ok, one could argue that any not registered ices should error out even during update, but I guess that's a hard problem to solve :-(
@jankatins,
Did you try running zsh via
zsh --interactive --login -c --
or possibly zinit via
zsh -ils -c -- '@zinit-scheduler burst'
I did not, but I'm also fine with running the extra source .zshrc
in the zsh call. The main gripe I have here, is that zinit does not complain if it receives an ice which it doesn't know about: currently (at least at the time of this issue) it silently ignores them.
The fix would be to also check that all the ices are defined when running update and the ices are loaded from the respective plugin folder and not given via the cli.
-> Update the initial message and title.
What happened?
During
zinit update
, the ices are loaded from a file in the plugin folder. These ices seems to not get validated and if some ice are not defined, they are silently ignored.zinit update
should validate all ice which are loaded from the persisted file during update.Original issue which showed this problem
I've the following recipe:
I usually run the following command to update all zinit stuff automatically from a bigger script:
This currently breaks the dl parts of the fzf recipe which in turn breaks the src, resulting in
Steps to reproduce
Relevant output
(slightly shortend the progress bars)
-> Note that the dl lines are not in the second version
Operating System & Version
OS: darwin21.3.0 | Vendor: apple | Machine: x86_64 | CPU: x86_64 | Processor: i386 | Hardware: x86_64
(this also happens on my linux machone, so it shouldn't be OS specific)
Zsh version
zsh 5.9 (x86_64-apple-darwin21.3.0)
Terminal emulator
wezterm
Code of Conduct