Skip to content

Commit 4ac19a3

Browse files
AhmedTMMclaudelouisgv
authored
fix: capture claude symlink target + verify PATH (#2245)
* fix: tarball workflow failures (root ownership, swapfile, hermes TTY) - Use sudo mv + chown for tarball in release step (root-owned from capture) - Skip swapfile creation if /swapfile already exists (GitHub Actions runners) - Tolerate hermes setup wizard failure when /dev/tty unavailable in CI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: capture claude symlink target in tarball + fix verify PATH The claude installer creates a symlink at ~/.local/bin/claude pointing to ~/.local/share/claude/versions/X.Y.Z. The capture script was missing ~/.local/share/claude/, causing a broken symlink in the tarball. Also add ~/.npm-global/bin to the verify PATH check for claude (npm fallback install path). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
1 parent c6b0953 commit 4ac19a3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packer/scripts/capture-agent.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ case "${AGENT_NAME}" in
2222
claude)
2323
echo "/root/.claude/local/" >> "${PATHS_FILE}"
2424
echo "/root/.local/bin/" >> "${PATHS_FILE}"
25+
echo "/root/.local/share/claude/" >> "${PATHS_FILE}"
2526
echo "/root/.npm-global/" >> "${PATHS_FILE}"
2627
;;
2728
opencode)

sh/e2e/lib/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ verify_claude() {
298298

299299
# Binary check
300300
log_step "Checking claude binary..."
301-
if cloud_exec "${app}" "PATH=\$HOME/.claude/local/bin:\$HOME/.local/bin:\$HOME/.bun/bin:\$PATH command -v claude" >/dev/null 2>&1; then
301+
if cloud_exec "${app}" "PATH=\$HOME/.claude/local/bin:\$HOME/.local/bin:\$HOME/.npm-global/bin:\$HOME/.bun/bin:\$PATH command -v claude" >/dev/null 2>&1; then
302302
log_ok "claude binary found"
303303
else
304304
log_err "claude binary not found"

0 commit comments

Comments
 (0)