Skip to content

coding-agent: keep Homebrew installs package-manager owned #844

Description

@fettpl

Problem

A Homebrew formula installs the npm package under a versioned path such as:

/opt/homebrew/Cellar/prime-agent/0.7.0/libexec/lib/node_modules/prime-agent

The current install-method detection treats that path as a custom global npm prefix. With normal filesystem permissions, getSelfUpdateCommand() therefore returns:

npm --prefix /opt/homebrew/Cellar/prime-agent/0.7.0/libexec install -g prime-agent

Running prime-agent update would mutate the Homebrew-managed keg instead of leaving upgrades to Homebrew.

Expected behavior

  • Detect installs inside a Homebrew Cellar as Homebrew-managed.
  • Do not construct or run an npm self-update command for those installs.
  • Direct the user to brew upgrade prime-agent.

This was found during the official Homebrew submission preflight tracked in #843.

The repository currently has no pkg:coding-agent label and this account cannot create one. @badlogic please create/apply that required label when convenient.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions