Skip to content

Commit e090956

Browse files
fix(ci): install claude-code native binary before validate
The validate task runs `claude plugin validate`, but mise's npm backend installs @anthropic-ai/claude-code with --ignore-scripts, so the postinstall that downloads the platform-native binary never runs — `claude` then errors "claude native binary not installed". ai-mktpl's validate only passed by restoring a stale mise cache; any cache miss hits the same failure. Run claude-code's install.cjs at the top of the validate task. Verified locally: fresh mise install of claude-code 2.1.143 fails `claude --version`, and after running install.cjs `claude plugin validate` succeeds. https://claude.ai/code/session_01AiWbZuSU6UCjuXnrBBFk9p
1 parent 5f9447e commit e090956

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

mise/tasks/validate

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
#MISE description="Validate plugin structure and marketplace consistency"
33
set -e
44

5+
# claude-code's native binary is downloaded by a postinstall script that mise's
6+
# npm backend skips (it installs with --ignore-scripts), so a fresh install
7+
# leaves `claude` non-functional ("claude native binary not installed"). Run
8+
# the postinstall explicitly before validate-plugin invokes `claude`.
9+
cc_dir="$(mise where npm:@anthropic-ai/claude-code 2>/dev/null || true)"
10+
cc_install="${cc_dir}/lib/node_modules/@anthropic-ai/claude-code/install.cjs"
11+
if [ -n "$cc_dir" ] && [ -f "$cc_install" ]; then
12+
echo "Ensuring claude-code native binary is installed..."
13+
node "$cc_install"
14+
fi
15+
516
mise run validate-marketplace
617

718
VALID=true

0 commit comments

Comments
 (0)