From 472849cfd618e6607de6bace8965c8b6e275f245 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 8 Jul 2026 15:26:42 +0900 Subject: internal/pkg: optionally force implementation entry For validation of build determinism. Signed-off-by: Ophestra --- cmd/mbf/main.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index a6c74a0f..37f799c8 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -696,6 +696,7 @@ func main() { flagNoReply bool flagFaults bool flagPop bool + flagRebuild bool flagBoot bool flagStd bool @@ -724,7 +725,11 @@ func main() { default: var pathname *check.Absolute err := cm.Do(func(cache *pkg.Cache) (err error) { - pathname, _, err = cache.Cure(a) + if flagRebuild { + pathname, _, err = cache.CureNew(a) + } else { + pathname, _, err = cache.Cure(a) + } return }) if err != nil { @@ -885,6 +890,10 @@ func main() { &flagPop, "pop", command.BoolFlag(false), "Display and destroy the most recent fault entry", + ).Flag( + &flagRebuild, + "rebuild", command.BoolFlag(false), + "Always enter the artifact implementation", ) } -- cgit v1.3.1