Skip to content

[BUG] Homebrew formula installs olcli but creates no executable symlinks #3

Description

@JT-Ushio

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions