What happened?
Hi, thanks for maintaining olcli.
I ran into an issue when installing olcli from the Homebrew tap on Apple Silicon macOS.
Installation succeeds, and Homebrew reports the formula as linked:
==> aloth/tap/olcli ✔: stable 0.11.0
Installed (on request)
Installed Versions
aloth/tap/olcli ✔ 0.11.0 (5,533 files, 26.7MB) [Linked]
However, olcli is not available on PATH:
$ olcli auth
zsh: command not found: olcli
Running:
brew unlink olcli && brew link olcli
returns:
Unlinking /opt/homebrew/Cellar/olcli/0.11.0... 0 symlinks removed.
Linking /opt/homebrew/Cellar/olcli/0.11.0... 0 symlinks created.
The installed Cellar contents contain libexec/lib, but no libexec/bin:
/opt/homebrew/Cellar/olcli/0.11.0/libexec/lib/ (5527 files)
/opt/homebrew/Cellar/olcli/0.11.0/sbom.spdx.json
/opt/homebrew/Cellar/olcli/0.11.0/INSTALL_RECEIPT.json
/opt/homebrew/Cellar/olcli/0.11.0/LICENSE
/opt/homebrew/Cellar/olcli/0.11.0/CHANGELOG.md
/opt/homebrew/Cellar/olcli/0.11.0/.brew/olcli.rb
/opt/homebrew/Cellar/olcli/0.11.0/README.md
The current formula uses:
system "npm", "install", *std_npm_args(ignore_scripts: false)
bin.install_symlink Dir["#{libexec}/bin/*"]
but it appears that npm install does not create the expected libexec/bin/* shims, so bin.install_symlink has nothing to link.
Environment:
macOS: Apple Silicon
Homebrew prefix: /opt/homebrew
olcli: 0.11.0
As a workaround, installing with:
npm install -g @aloth/olcli
works as expected.
Could you please check whether the Homebrew formula needs to explicitly create/install the npm bin entries, e.g. by linking the package executables from the installed node_modules directory?
Thanks!
Expected behavior
I expected the Homebrew formula to install and link the olcli executable into Homebrew's bin directory, so that commands such as:
olcli --version
olcli auth
would work immediately after installation without any additional manual symlink creation.
Steps to reproduce
No response
Version
No response
Relevant logs
What happened?
Hi, thanks for maintaining
olcli.I ran into an issue when installing
olclifrom the Homebrew tap on Apple Silicon macOS.Installation succeeds, and Homebrew reports the formula as linked:
However,
olcliis not available onPATH:$ olcli auth zsh: command not found: olcliRunning:
brew unlink olcli && brew link olclireturns:
The installed Cellar contents contain
libexec/lib, but nolibexec/bin:The current formula uses:
but it appears that
npm installdoes not create the expectedlibexec/bin/*shims, sobin.install_symlinkhas nothing to link.Environment:
As a workaround, installing with:
works as expected.
Could you please check whether the Homebrew formula needs to explicitly create/install the npm bin entries, e.g. by linking the package executables from the installed
node_modulesdirectory?Thanks!
Expected behavior
I expected the Homebrew formula to install and link the
olcliexecutable into Homebrew'sbindirectory, so that commands such as:would work immediately after installation without any additional manual symlink creation.
Steps to reproduce
No response
Version
No response
Relevant logs