Commit d05906c
committed
fix(validator): consult platform_dirs and fall back to ~/.orb for config discovery
The validator's bespoke candidate list contained only ./config/config.json as
the fallback, missing every platform root that ConfigurationManager resolves
via platform_dirs.get_config_location(). Route the third candidate through
get_config_location() and update _print_config_help to display the actual
paths tried.
When running from inside a repo checkout, platform_dirs rules 4b/5 pin the
config location to the venv/checkout root regardless of whether config exists
there. Add a final user-home fallback so operators with global ~/.orb config
succeed when the local checkout has no config of its own.1 parent 7207b98 commit d05906c
1 file changed
Lines changed: 26 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
| 124 | + | |
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
| |||
162 | 173 | | |
163 | 174 | | |
164 | 175 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 176 | + | |
168 | 177 | | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
179 | 193 | | |
180 | 194 | | |
181 | 195 | | |
| |||
0 commit comments