Commit ba9e2fe
fix: only rename top-level template dir in Windows zip extraction
The zip extraction was replacing ALL {{cookiecutter.*}} directory names
with {{cookiecutter.project_name}}, including nested ones like
{{cookiecutter.project_slug}}. This caused src/replace_me/ to become
src/replace-me/ on Windows, breaking Python imports. Only rename the
top-level template dir (which has NTFS-illegal pipe and quote chars).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c3c3bfb commit ba9e2fe
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
149 | 158 | | |
150 | 159 | | |
151 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments