-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Background
I used to execute claude migrate-installer
for auto-upgrading of the claude cli;
which would remove the claude
from $PATH, but add an alias entry to all shell (bash/zsh/etc.)
What I expected
speckit could find the correct claude
executable binary file and complete the init procesure properly
What I see
speckit does not works well;
$ uvx --from git+https://github.com/github/spec-kit.git specify init --here --ai claude
Updated https://github.com/github/spec-kit.git (fc8eb0434a0ac7d49be17b574fa104677dc47f0f)
Built specify-cli @ git+https://github.com/github/spec-kit.git@fc8eb0434a0ac7d49be17b574fa104677dc47f0f
Installed 18 packages in 21ms
███████╗██████╗ ███████╗ ██████╗██╗███████╗██╗ ██╗
██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔════╝╚██╗ ██╔╝
███████╗██████╔╝█████╗ ██║ ██║█████╗ ╚████╔╝
╚════██║██╔═══╝ ██╔══╝ ██║ ██║██╔══╝ ╚██╔╝
███████║██║ ███████╗╚██████╗██║██║ ██║
╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝
Spec-Driven Development Toolkit
Warning: Current directory is not empty (22 items)
Template files will be merged with existing content and may overwrite existing files
Do you want to continue? [y/N]: y
╭───────────────────────────────────────────────────────────────────────────╮
│ Specify Project Setup │
│ Initializing in current directory: cloudflare-tunnel-ingress-controller │
│ Path: /Users/strrl/playground/GitHub/cloudflare-tunnel-ingress-controller │
╰───────────────────────────────────────────────────────────────────────────╯
⚠️ claude not found
Install with: Install from: https://docs.anthropic.com/en/docs/claude-code/setup
Error: Claude CLI is required for Claude Code projects
Required AI tool is missing!
Tip: Use --ignore-agent-tools to skip this check
$ which claude
claude: aliased to /Users/strrl/.claude/local/claude
Potential Solution
let speckit lookup $HOME/.claude/local/claude
; and it should be more prioritized than other claude
executables in $PATH, because in a shell environment, alias is preferred over executable;
so speckit should lookup
- firstly
$HOME/.claude/local/claude
- otherwise, lookup other exectuable in $PATH
- throw an error
I could open a PR if this solution looks good to you guys ❤️
More References
more info about claude migrate-installer
https://docs.anthropic.com/en/docs/claude-code/setup#local-installation
sglavoie
Metadata
Metadata
Assignees
Labels
No labels