Open chunleng opened 2 years ago
Mhm, It is a bug in the formulae.
The formulae just update the version it seems, maybe something changed in this update that needs to update to the formula
https://github.com/Homebrew/homebrew-core/commit/6fde9e798c51bcbe61da74c9df10b8bcfa2a2693
I think PR #380 broke it...
The homebrew formula looks fine to me. It downloads https://github.com/zdharma-continuum/zinit/archive/refs/tags/v3.8.0.tar.gz, which does contain doc/zinit.1
. Don't know what's going on here. Shouldn't have merged that PR so fast.
@chunleng Again, it is a bug in the formula. But I forgot to say what it was.
The bug is here
man1.install "doc/zinit.1"
It moves (NOT copy) zinit.1
to Brew managed manpage collection, which is why it can't find the file.
I could not update the formula because Homebrew requires the respective project to have a release within the last year, which Zinit had not.
I thought I would chime in to provide a quick fix:
ln -s "$(man --path zinit)" "$(brew --prefix)/opt/zinit/doc/zinit.1"
:tada: This issue has been resolved in version 3.9.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This still seems to be a problem. Tried installing Zinit on a fresh MacOS through homebrew. It installed v5.9.0 and I'm still getting this error when opening a new terminal session: cp: /opt/homebrew/opt/zinit/doc/zinit.1: No such file or directory
. Happening on MacOS Ventura 13.1. Doesn't happen if I install Zinit through the recommended automatic curl command.
I also encountered this issue with a fresh install on a brand new Macbook. I can confirm that I installed version 3.9.
@aov-mx provided a very helpful fix. For Mac users out there, the flag --path
might not work, but you can use -w
instad:
ln -s "$(man -w zinit)" "$(brew --prefix)/opt/zinit/doc/zinit.1"
This also happens with nix installation.
cp: cannot stat '~/.nix-profile/share/zinit/doc/zinit.1': No such file or directory
@alichtman I see my PR had already been merged & unmerged before why'd u undo this change before ?
@psprint also thx for your work though love zinit :grin:
What happened?
After installing zinit 3.8.0 the following line appears
Steps to reproduce
~/.zinit
foldersource /opt/homebrew/Cellar/zinit/*/zinit.zsh
Relevant output
Screenshots and recordings
No response
Operating System & Version
OS: darwin21.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64
Zsh version
zsh 5.8 (x86_64-apple-darwin21.0)
Terminal emulator
xterm-kitty
If using WSL on Windows, which version of WSL
No response
Additional context
No response
Code of Conduct