DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
213 stars 42 forks source link

[BUG] Completions can't install on Apple Silicon Macs (or when `/usr/local/share/zsh/` doesn't exist) #459

Open willdhorn opened 3 weeks ago

willdhorn commented 3 weeks ago

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:

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.

nmanoogian commented 3 weeks ago

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