DopplerHQ / DopplerHQ/cli

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

Open
#459 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
396
Forks
83
Avg merge
1d 2h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the doppler completion install command and reproduce the failure with /usr/local/share/zsh/ absent on an Apple Silicon macOS system. Trace how the installer chooses its completion directory and verify that installation succeeds without protected-path access, with the completion files available through $FPATH or a supported directory option.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.