aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-08 15:26:42 +0900
committerOphestra <cat@gensokyo.uk>2026-07-08 15:26:42 +0900
commit472849cfd618e6607de6bace8965c8b6e275f245 (patch)
tree60a2ececb770e9682a4ce897c773240147102c5e /cmd
parent3c6e9b3d0526a9338dc897a8e288647b2ec12b10 (diff)
internal/pkg: optionally force implementation entry
For validation of build determinism. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mbf/main.go11
1 files changed, 10 insertions, 1 deletions
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",
)
}