fix: DevContainerプラグインインストールのパス計算を修正 - #181
Conversation
## 問題 - setup-claude.shが/tmp/setup-claude.shから実行されるため、REPO_ROOT計算が失敗 - PLUGINS_FILEが/.claude/plugins/plugins.txtとなり、ファイルが見つからずエラー - || trueでエラーが隠蔽され、問題が表面化しない ## 変更内容 - script/setup-claude.sh: パス計算を絶対パス(/home/vscode/.claude/plugins/plugins.txt)に変更 - .devcontainer/devcontainer.json: || trueを削除してエラーを可視化 ## 期待される動作 - DevContainer起動時にプラグインが正しくインストールされる - エラー発生時にログで確認できる 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes improve error visibility in the DevContainer setup by removing error suppression from the postCreateCommand and hardcoding the plugins file path in the setup script from a dynamic location to a fixed absolute path. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
プルリクエストレビュー概要DevContainer起動時のClaudeプラグインインストールが失敗する問題の修正を確認しました。根本原因の分析と修正アプローチは適切です。 ✅ 良い点
|
|
🎉 This PR is included in version 1.8.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
問題
DevContainerを再ビルドしてもClaudeプラグインが表示されない問題がありました。
根本原因
setup-claude.shが/tmp/setup-claude.shから実行されるため、REPO_ROOT計算が失敗SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"→/tmpREPO_ROOT="$(dirname "$SCRIPT_DIR")"→/PLUGINS_FILE="${REPO_ROOT}/.claude/plugins/plugins.txt"→/.claude/plugins/plugins.txt(存在しない)その他の問題
|| trueでエラーが隠蔽され、問題が表面化しない変更内容
1. script/setup-claude.sh
変更前:
変更後:
2. .devcontainer/devcontainer.json
変更前:
変更後:
期待される動作
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.