Commit e74dd32
authored
fix: improve install script behavior in CI environments (#1012)
* fix: improve install script behavior in CI environments
- Skip legacy v1/v2 migration in CI environments where it's not applicable
- Use non-interactive sudo (-n) to prevent hanging on password prompts
- Fix symlink removal detection to check both file existence and symlink status
- Exit with error code when binary fails to execute in CI (fail loudly)
- Test migration path by unsetting CI environment variables in test workflow
* fix: remove is_ci guard from migrate_from_v1 to fix CI test
The is_ci early return in migrate_from_v1 skipped migration entirely
in CI, causing the v1-to-v2 migration test to fail. The env overrides
(CI="", GITHUB_ACTIONS="") did not effectively disable CI detection.
Migration is safe to run in CI: sudo -n prevents hangs, error
suppression handles permission issues, and real CI has no legacy
installs to clean up. Remove the guard and the now-unnecessary
workflow env overrides.1 parent b0e15af commit e74dd32
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
| 293 | + | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
511 | 514 | | |
0 commit comments