fix(core): apply earlier pending plugins before later ones

Rescan the Use() list after each Load so a consumer registered before its provider still runs before later consumers that became ready in the same pass.
This commit is contained in:
ryan
2026-08-30 16:58:20 +08:00
parent 6553ac7782
commit 7af6fee5d5
2 changed files with 35 additions and 0 deletions
+3
View File
@@ -300,6 +300,9 @@ func (a *App) reconcileLocked() error {
return fmt.Errorf("core: load fiber %q failed: %w", f.Name(), err)
}
progress = true
// Rescan from the head of the Use() list so earlier pending
// plugins run before later ones that became ready in this pass.
break
}
}
if !progress {