Commit 06f4f56
committed
fix(windows): add LOCALAPPDATA fallback for app data path
Add fallback path resolution when LOCALAPPDATA environment variable is
missing on Windows systems. This resolves 76 test failures in Windows CI
where missing LOCALAPPDATA caused undefined app data path, leading to
empty config and exit code mismatches.
Changes:
- src/constants/paths.mts: Construct fallback from homedir() + AppData/Local
- Maintains existing behavior on macOS and Linux
- Logs warning when fallback is used
- Updated comments to reflect new fallback behavior
Root cause chain:
Missing LOCALAPPDATA → getSocketAppDataPath() returns undefined →
empty config → org resolution fails → exit code 11 parent af46aff commit 06f4f56
1 file changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | | - | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
197 | 205 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| |||
0 commit comments