Commit 47ebf86
fix: resolve path mismatches in coder template causing mount failures (#445)
This commit fixes critical path inconsistencies between directory creation
and volume mounts in the Coder workspace template that were causing files
like .claude.json to be created as directories instead of files.
Changes:
- Enhanced .claude.json creation with explicit touch, chmod, and verification
- Fixed bash_history path: bash-history → bash_history (hyphen to underscore)
- Fixed .ssh path: ssh/.ssh → .ssh (removed duplicate nesting)
- Fixed .docker path: docker/.docker → .docker (removed duplicate nesting)
- Fixed .kube path: kube/.kube → .kube (removed duplicate nesting)
- Fixed HISTFILE env var: bash_history → .bash_history (added leading dot)
- Fixed GIT_CONFIG_GLOBAL env var: gitconfig → .gitconfig (added leading dot)
Root cause: When Docker mounts a non-existent host path, it creates it as
a directory. The previous path mismatches meant Docker was creating directories
at wrong locations, causing configuration files to fail.
Impact: Resolves issues where .claude.json, .bash_history, and credential
directories were inaccessible or incorrectly structured in workspaces.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Mohsin Hashmi <mhashmi@wiser.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 03a4dc4 commit 47ebf86
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
85 | 93 | | |
| |||
388 | 396 | | |
389 | 397 | | |
390 | 398 | | |
391 | | - | |
392 | | - | |
| 399 | + | |
| 400 | + | |
393 | 401 | | |
394 | 402 | | |
395 | 403 | | |
| |||
439 | 447 | | |
440 | 448 | | |
441 | 449 | | |
442 | | - | |
| 450 | + | |
443 | 451 | | |
444 | 452 | | |
445 | 453 | | |
| |||
0 commit comments