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]: cannot stat 'path/to/zinit/doc/zinit.1' #418

Open
1 task done
chunleng opened this issue Nov 8, 2022 · 13 comments · Fixed by #419
Open
1 task done

[bug]: cannot stat 'path/to/zinit/doc/zinit.1' #418

chunleng opened this issue Nov 8, 2022 · 13 comments · Fixed by #419
Assignees
Labels
bug Something isn't working released

Comments

@chunleng
Copy link

chunleng commented Nov 8, 2022

What happened?

After installing zinit 3.8.0 the following line appears

cp: /opt/homebrew/Cellar/zinit/3.8.0/doc/zinit.1: No such file or directory

Steps to reproduce

  1. Remove ~/.zinit folder
  2. Use zshrc with just source /opt/homebrew/Cellar/zinit/*/zinit.zsh
  3. Start zsh

Relevant output

cp: /opt/homebrew/Cellar/zinit/3.8.0/doc/zinit.1: No such file or directory

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

  • I agree to follow this project's Code of Conduct
@chunleng chunleng added the bug Something isn't working label Nov 8, 2022
@vladdoster
Copy link
Member

Mhm, It is a bug in the formulae.

https://github.com/Homebrew/homebrew-core/blob/471af5646d50097945a5f403d6908226baa1122e/Formula/zinit.rb#L21

@chunleng
Copy link
Author

chunleng commented Nov 8, 2022

The formulae just update the version it seems, maybe something changed in this update that needs to update to the formula

Homebrew/homebrew-core@6fde9e7

@altern8tif
Copy link

I think PR #380 broke it...

psprint added a commit to psprint/.priv-zinit-fork that referenced this issue Nov 8, 2022
alichtman added a commit that referenced this issue Nov 18, 2022
Copy doc/zinit.1 only if it exists. Fixes #418.
@alichtman alichtman reopened this Nov 18, 2022
alichtman added a commit that referenced this issue Nov 18, 2022
Revert "Copy doc/zinit.1 only if it exists. Fixes #418."
@alichtman alichtman reopened this Nov 18, 2022
@alichtman
Copy link
Member

alichtman commented Nov 18, 2022

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.

@vladdoster
Copy link
Member

vladdoster commented Nov 20, 2022

@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.

@vladdoster
Copy link
Member

vladdoster commented Nov 20, 2022

I could not update the formula because Homebrew requires the respective project to have a release within the last year, which Zinit had not.

@ghost
Copy link

ghost commented Nov 24, 2022

I thought I would chime in to provide a quick fix:

ln -s "$(man --path zinit)" "$(brew --prefix)/opt/zinit/doc/zinit.1"

@github-actions
Copy link

🎉 This issue has been resolved in version 3.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

psprint added a commit to psprint/.priv-zinit-fork that referenced this issue Dec 30, 2022
psprint pushed a commit to psprint/.priv-zinit-fork that referenced this issue Dec 30, 2022
@Tomcatus
Copy link

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.

@jdatskuid
Copy link

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"

@henryhchchc
Copy link

This also happens with nix installation.

cp: cannot stat '~/.nix-profile/share/zinit/doc/zinit.1': No such file or directory

@ethnh
Copy link

ethnh commented Nov 8, 2024

@alichtman I see my PR had already been merged & unmerged before
why'd u undo this change before ?

@ethnh
Copy link

ethnh commented Nov 8, 2024

@psprint also
thx for your work though love zinit 😁

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.

8 participants