forked from rosa/hakurei
internal/pkg: optionally force implementation entry
For validation of build determinism. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+10
-1
@@ -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",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user