cmd/mbf: all command
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m56s
Test / Hakurei (push) Successful in 4m37s
Test / Sandbox (race detector) (push) Successful in 5m52s
Test / Hakurei (race detector) (push) Successful in 7m6s
Test / ShareFS (push) Successful in 7m15s
Test / Flake checks (push) Successful in 1m7s
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m56s
Test / Hakurei (push) Successful in 4m37s
Test / Sandbox (race detector) (push) Successful in 5m52s
Test / Hakurei (race detector) (push) Successful in 7m6s
Test / ShareFS (push) Successful in 7m15s
Test / Flake checks (push) Successful in 1m7s
This is a convenience command to cure all registered packages to avoid relying on the test. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -682,6 +682,25 @@ func main() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.NewCommand(
|
||||||
|
"all",
|
||||||
|
command.UsageInternal,
|
||||||
|
func([]string) error {
|
||||||
|
all := rosa.Native().CollectAll()
|
||||||
|
a := make(pkg.Collect, len(all))
|
||||||
|
for i, h := range all {
|
||||||
|
_, a[i] = rosa.Native().Std().Load(h)
|
||||||
|
}
|
||||||
|
return cm.Do(func(cache *pkg.Cache) (err error) {
|
||||||
|
_, _, err = cache.Cure(&a)
|
||||||
|
if pkg.IsCollected(err) {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
|
return
|
||||||
|
})
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
{
|
{
|
||||||
var (
|
var (
|
||||||
flagDump string
|
flagDump string
|
||||||
|
|||||||
Reference in New Issue
Block a user