internal/rosa: evaluate packages late
All checks were successful
Test / Create distribution (push) Successful in 1m5s
Test / Sandbox (push) Successful in 2m52s
Test / ShareFS (push) Successful in 3m43s
Test / Sandbox (race detector) (push) Successful in 5m26s
Test / Hakurei (race detector) (push) Successful in 6m31s
Test / Hakurei (push) Successful in 2m47s
Test / Flake checks (push) Successful in 1m37s

This also enables concurrent evaluation.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 01:26:21 +09:00
parent 8807cbc730
commit 4d60fa5632
3 changed files with 92 additions and 67 deletions

View File

@@ -84,15 +84,15 @@ func main() {
flagArch string
flagCheck bool
flagLTO bool
flagET bool
flagPT bool
flagCrossOverride int
addr net.UnixAddr
)
c := command.New(os.Stderr, log.Printf, "mbf", func([]string) error {
if flagET {
log.Println("evaluated in", rosa.EvalTime())
if flagPT {
log.Println("parsed in", rosa.ParseTime())
}
msg.SwapVerbose(!flagQuiet)
@@ -189,9 +189,9 @@ func main() {
"socket", command.StringFlag("$MBF_DAEMON_SOCKET"),
"Pathname of socket to bind to",
).Flag(
&flagET,
"eval-time", command.BoolFlag(false),
"Print duration of the initial azalea evaluation",
&flagPT,
"parse-time", command.BoolFlag(false),
"Print duration of the initial azalea parse",
)
c.NewCommand(