Commit 120e40f
committed
fix(sync): honor changed-path provider sources in shadow
Changed-path classification now carries provider-selected source identity, so shadow observation has to consume that same source instead of performing a fresh lookup from the legacy file path. Otherwise tombstone, virtual, and stored-hint sources can be compared against the wrong provider source or lose forced-parse semantics.
Route shadow observation through the shared provider source resolver and propagate file-level force parsing into provider observation so shadow comparisons exercise the source selected by changed-path classification.
Validation: go test -tags "fts5" ./internal/sync -run 'TestProcessFileShadow(ObservesProviderWithoutReplacingLegacy|UsesChangedPathProviderSource)|TestClassifyProviderChangedPath|TestProviderVirtualSourceBackedByEventPreservesHashInDBPath' -count=1; go test -tags "fts5" ./internal/db ./internal/parser ./internal/sync -count=1; go vet ./...; go fmt ./...; ./custom-gcl run --config .golangci.nilaway.yml ./internal/sync; git diff --check1 parent 7d971a4 commit 120e40f
2 files changed
Lines changed: 101 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4560 | 4560 | | |
4561 | 4561 | | |
4562 | 4562 | | |
4563 | | - | |
4564 | | - | |
4565 | | - | |
4566 | | - | |
4567 | | - | |
| 4563 | + | |
4568 | 4564 | | |
4569 | 4565 | | |
4570 | 4566 | | |
| |||
4574 | 4570 | | |
4575 | 4571 | | |
4576 | 4572 | | |
4577 | | - | |
| 4573 | + | |
4578 | 4574 | | |
4579 | 4575 | | |
4580 | 4576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
240 | 339 | | |
241 | 340 | | |
242 | 341 | | |
| |||
0 commit comments