-
Notifications
You must be signed in to change notification settings - Fork 187
Description
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
- 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/qis theportage-utilspackage
- Run
curl -fsSL https://cli.kiro.dev/install | bash - 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
qonPATH
Conversation ID
No response
Additional Context
No response