Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .devcontainer/claude-code/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
"containerEnv": {
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude"
},
"dependsOn": [
"ghcr.io/devcontainers/features/node"
],
"installsAfter": [
"ghcr.io/devcontainers/features/node"
],
"dependsOn": {
"ghcr.io/devcontainers/features/node": {}
},
"mounts": [
"source=${localEnv:HOME}/.claude/CLAUDE.md,target=/home/vscode/.claude/CLAUDE.md,type=bind,ro",
"source=${localEnv:HOME}/.claude/settings.json,target=/home/vscode/.claude/settings.json,type=bind,ro",
Expand Down
5 changes: 2 additions & 3 deletions .devcontainer/claude-code/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ set -eu
install_claude_code() {
echo "Installing Claude Code CLI globally..."

# Verify Node.js and npm are available
# Verify Node.js and npm are available (should be installed via dependsOn)
if ! command -v node >/dev/null || ! command -v npm >/dev/null; then
cat <<EOF

ERROR: Node.js and npm are required but not found!

This should not happen as the Node.js feature is automatically installed
via the 'installsAfter' mechanism in devcontainer-feature.json.
This should not happen as the Node.js feature is declared in 'dependsOn'.

Please check:
1. The devcontainer feature specification is correct
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}
},
"features": {
"ghcr.io/devcontainers/features/node":{},
"./claude-code": {}

// "ghcr.io/devcontainers/features/docker-in-docker:2": {}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,4 @@ managed_context/metadata.json
test_suite_analysis/metadata.json

.devpod/
.devpod-internal/