File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
registry/coder/modules/claude-code Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,12 @@ resource "coder_env" "disable_autoupdater" {
288288 value = " 1"
289289}
290290
291+ resource "coder_env" "claude_binary_path" {
292+ agent_id = var. agent_id
293+ name = " PATH"
294+ value = " $HOME/.local/bin:$PATH"
295+ }
296+
291297locals {
292298 # we have to trim the slash because otherwise coder exp mcp will
293299 # set up an invalid claude config
Original file line number Diff line number Diff line change 44set -euo pipefail
55
66# Ensure claude binary is in PATH
7- export PATH=" $HOME /.local/bin:$PATH "
7+ # export PATH="$HOME/.local/bin:$PATH"
88
99BOLD=' \033[0;1m'
1010
@@ -44,7 +44,6 @@ function install_claude_code_cli() {
4444 if [ $CURL_EXIT -ne 0 ]; then
4545 echo " Claude Code installer failed with exit code $$ CURL_EXIT"
4646 fi
47-
4847 echo " Installed Claude Code successfully. Version: $( claude --version || echo ' unknown' ) "
4948 else
5049 echo " Skipping Claude Code installation as per configuration."
You can’t perform that action at this time.
0 commit comments