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] Completions can't install on Apple Silicon Macs (or when /usr/local/share/zsh/ doesn't exist) #459

Open
willdhorn opened this issue Jun 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@willdhorn
Copy link

willdhorn commented Jun 11, 2024

Describe the bug
CLI completions fail to install when /usr/local/share/zsh/ doesn't exist, which it won't on Apple Silicon macs because /usr is protected.

To Reproduce

  1. make sure /usr/local/share/zsh/ doesn't exist
  2. run doppler completion install
  3. See error

Expected behavior
Either:

  • it adds the file(s) to a different directory and adds it to $FPATH
  • the cli supports a flag to specify a directory to place the completions and adds that directory to $FPATH

Desktop (please complete the following information):
macOS Ventura 13.6.1 (M2 MacBook Pro)

CLI Version:
v3.68.0

Additional Context
/usr requires root permissions on Apple Silicon Macs. This is why homebrew completions are installed in /usr/local/share/zsh/site-functions on x86 macs and /opt/homebrew/share/zsh/site-functions on ARM machines.

@willdhorn willdhorn added the bug Something isn't working label Jun 11, 2024
@nmanoogian
Copy link
Member

Thanks for reporting this @willdhorn! We'll take a look.

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

No branches or pull requests

2 participants