fix: harden signature cache publication

This commit is contained in:
Samuel Cui
2026-08-31 22:36:12 +08:00
parent cc5248ea33
commit d097ca107d
7 changed files with 132 additions and 67 deletions
+6 -2
View File
@@ -66,8 +66,12 @@ func (o *option) check() error {
}
}
o.fromDevice.check()
o.toDevice.check()
if err := o.fromDevice.check(); err != nil {
return fmt.Errorf("check source device failed, %w", err)
}
if err := o.toDevice.check(); err != nil {
return fmt.Errorf("check target device failed, %w", err)
}
if o.withSignatureCache {
o.withHash = true
}