Skip to content

Commit 5450113

Browse files
fix(coder/modules/claude-code): move set -euo pipefail after sourcing .bashrc (#520)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
1 parent 0ce65b2 commit 5450113

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "3.4.3"
16+
version = "3.4.4"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -70,7 +70,7 @@ data "coder_parameter" "ai_prompt" {
7070
7171
module "claude-code" {
7272
source = "registry.coder.com/coder/claude-code/coder"
73-
version = "3.4.3"
73+
version = "3.4.4"
7474
agent_id = coder_agent.example.id
7575
workdir = "/home/coder/project"
7676
@@ -106,7 +106,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
106106
```tf
107107
module "claude-code" {
108108
source = "registry.coder.com/coder/claude-code/coder"
109-
version = "3.4.3"
109+
version = "3.4.4"
110110
agent_id = coder_agent.example.id
111111
workdir = "/home/coder"
112112
install_claude_code = true
@@ -129,7 +129,7 @@ variable "claude_code_oauth_token" {
129129
130130
module "claude-code" {
131131
source = "registry.coder.com/coder/claude-code/coder"
132-
version = "3.4.3"
132+
version = "3.4.4"
133133
agent_id = coder_agent.example.id
134134
workdir = "/home/coder/project"
135135
claude_code_oauth_token = var.claude_code_oauth_token
@@ -202,7 +202,7 @@ resource "coder_env" "bedrock_api_key" {
202202
203203
module "claude-code" {
204204
source = "registry.coder.com/coder/claude-code/coder"
205-
version = "3.4.3"
205+
version = "3.4.4"
206206
agent_id = coder_agent.example.id
207207
workdir = "/home/coder/project"
208208
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
@@ -259,7 +259,7 @@ resource "coder_env" "google_application_credentials" {
259259
260260
module "claude-code" {
261261
source = "registry.coder.com/coder/claude-code/coder"
262-
version = "3.4.3"
262+
version = "3.4.4"
263263
agent_id = coder_agent.example.id
264264
workdir = "/home/coder/project"
265265
model = "claude-sonnet-4@20250514"

registry/coder/modules/claude-code/scripts/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
2-
set -euo pipefail
32

43
if [ -f "$HOME/.bashrc" ]; then
54
source "$HOME"/.bashrc
65
fi
76

7+
# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles
8+
set -euo pipefail
9+
810
BOLD='\033[0;1m'
911

1012
command_exists() {

registry/coder/modules/claude-code/scripts/start.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2-
set -euo pipefail
32

43
if [ -f "$HOME/.bashrc" ]; then
54
source "$HOME"/.bashrc
65
fi
6+
7+
# Set strict error handling AFTER sourcing bashrc to avoid unbound variable errors from user dotfiles
8+
set -euo pipefail
9+
710
export PATH="$HOME/.local/bin:$PATH"
811

912
command_exists() {

0 commit comments

Comments
 (0)