Commit 073a953
fix: use cross-spawn to avoid exec format errors when creating dataconnect apps (#10616)
* fix: use cross-spawn to avoid exec format errors when creating dataconnect apps
Replaces the native child_process spawn with cross-spawn and removes
the `shell: true` option in `src/init/features/dataconnect/create_app.ts`.
This ensures that the `dataconnect` CLI successfully executes commands
like `npm` on Windows and other OSes without encountering `ENOEXEC`
format errors.
Co-authored-by: fredzqm <9068391+fredzqm@users.noreply.github.com>
* fix: use cross-spawn to avoid exec format errors when creating dataconnect apps
Replaces the native child_process spawn with cross-spawn and removes
the `shell: true` option in `src/init/features/dataconnect/create_app.ts`.
This ensures that the `dataconnect` CLI successfully executes commands
like `npm` on Windows and other OSes without encountering `ENOEXEC`
format errors. Also updates CHANGELOG.md.
Co-authored-by: fredzqm <9068391+fredzqm@users.noreply.github.com>
* Apply suggestion from @gemini-code-assist[bot]
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* improve error logging
* Update CHANGELOG.md
* fix: resolve lint and formatting issues in dataconnect app creation
* revert: remove test-init ignores from .eslintignore and .gitignore
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Joe Hanley <joehanley@google.com>1 parent 7657d15 commit 073a953
3 files changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | | - | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
282 | | - | |
283 | | - | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| |||
0 commit comments