Commit 2fec429
fluxconfig: symlinked legacy lib is not "stranded" — realpath-compare in migration
Real-machine transition state: ~/FluxLib stays behind as a symlink to
<FluxConfig>/FluxLib until every old-code session is gone, and old-code
ensureFluxLib re-persists fluxLibPath (recreating the capital config dir) on
every CLI run. The re-merge handled this but logged a misleading "both
libraries exist" warning — now oldLib/target are realpath-compared, so the
symlink case is recognized as already-migrated: key dropped, no warning.
Gate test covers the full old-code-recreation cycle (t6).
Verified on the real machine: recreated ~/.config/Flux re-merged + removed,
prefs back to fluxConfigPath-only, no stranded warning.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 39e589d commit 2fec429
2 files changed
Lines changed: 31 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
300 | 310 | | |
301 | 311 | | |
302 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
181 | 199 | | |
182 | 200 | | |
183 | 201 | | |
| |||
0 commit comments