Commit 19e9846
fix(postCreate): fail fast with a clear message when .git is missing
If the user opens the devcontainer before running `git init`, uv sync
fails opaquely because setuptools-scm can't compute a version, and
pre-commit can't install hooks into a non-existent .git/hooks. VS
Code's wrapper then hides the real stderr behind a generic
"postCreateCommand failed" exit-1.
postCreate.sh now detects a missing .git directory up front, prints
a clear explanation to stderr, and exits 1. The user is told exactly
what to run on the host to recover. Failing fast beats silently
bootstrapping a half-broken environment.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5cf9c82 commit 19e9846
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
7 | 34 | | |
8 | 35 | | |
9 | 36 | | |
| |||
0 commit comments