Skip to content

Kiro CLI installer conflicts with unrelated /usr/bin/q binary as Amazon Q CLIΒ #6775

@ambasta

Description

@ambasta

Before opening, please confirm:

Operating System

Gentoo

Kiro Version

Any/Latest

Bug Description

The Kiro CLI install script incorrectly assumes that any existing q binary on PATH is Amazon Q CLI.

On Gentoo, /usr/bin/q already exists as the q utility from portage-utils, which is unrelated to Amazon Q CLI. In that case, the installer reports:

Kiro CLI installer:

Detected existing Amazon Q CLI installation
Kiro CLI is the new version of Amazon Q CLI. Updating to latest version.


⚠️ Q CLI at /usr/bin/q does not support auto-update. Please uninstall it and rerun this script to install Kiro CLI.

The installer should verify that the discovered q executable is actually Amazon Q CLI before treating it as an existing installation or update target.

As written, the script blocks installation of Kiro CLI on systems where some unrelated program named q is installed.

Steps to Reproduce

  1. Use a Linux system where /usr/bin/q exists but is not Amazon Q CLI. For example, on Gentoo:
  • emerge portage-utils
  • confirm /usr/bin/q is the portage-utils package
  1. Run curl -fsSL https://cli.kiro.dev/install | bash
  2. Observe that installation aborts with error.

Expected Behavior

The installer should confirm that the detected q binary is actually Amazon Q CLI before deciding that an existing installation is present.

If /usr/bin/q is some unrelated executable, the installer should ignore it and continue installing Kiro CLI normally, or use a more reliable detection method such as:

  • checking version output for Amazon Q/Kiro-specific identifiers
  • using a dedicated binary name or explicit signature instead of only q on PATH

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions