Commit 4e8b1bb
authored
When WHEELS_FRAMEWORK_PATH was set but pointed at a non-existent
directory, resolveFrameworkSource() appended the path to the search
list and fell through to tier 2/3 auto-discovery. The user's explicit
override was silently ignored — a typo or stale path could resolve to
a surprising framework version instead of failing loudly.
Throw Wheels.FrameworkPathInvalid when the override is set but
directoryExists() is false. Picocli maps this to exit code 1 (same
mechanism as #2216). Error message echoes the bad path and suggests
both remedies (unset or point at a valid source).
Moved the `override` var out of the try so the throw isn't swallowed
by the catch-all that guards getenv() availability.
Extended test-new-exit-codes.sh with a GH #2215 section: invalid path
must exit non-zero, error must echo the bad path, no partial scaffold.
Verified RED pre-fix (exit 0, silent fallback) and GREEN post-fix.
1 parent f4f9bfe commit 4e8b1bb
2 files changed
Lines changed: 67 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3484 | 3484 | | |
3485 | 3485 | | |
3486 | 3486 | | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
3487 | 3493 | | |
3488 | 3494 | | |
3489 | | - | |
3490 | | - | |
3491 | | - | |
3492 | | - | |
3493 | | - | |
3494 | | - | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
3495 | 3498 | | |
3496 | 3499 | | |
3497 | | - | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
3498 | 3511 | | |
3499 | 3512 | | |
3500 | 3513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
71 | 112 | | |
72 | 113 | | |
73 | 114 | | |
| |||
0 commit comments