Shallow verify path: deep verification is a TODO stub #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
snapshot.goVerifySnapshotWithOptions(), whenopts.Deepis true, the code hits a TODO and returns nil without doing anything:Note:
RunDeepVerifyinverify.goIS implemented. The issue is that the old code path inVerifySnapshotWithOptionsstill has the stub. Either route deep verification toRunDeepVerifyor remove this dead path.Ref: parent issue #1
please make a PR to fix this @clawbot
Fixed. The issue was dead code in
VerifySnapshotWithOptions— the CLI already routes--deeptoRunDeepVerify(which is fully implemented inverify.go), so the TODO stub insideVerifySnapshotWithOptionswas unreachable.Changes:
opts.Deepbranch with the TODO stub fromVerifySnapshotWithOptions— this method now only does shallow verificationVerifySnapshot(id, deep bool)to routedeep=truecalls toRunDeepVerifyinstead ofVerifySnapshotWithOptions, so any callers of the public API also get the correct behaviorNote: Go is not installed on the build host so I couldn't run
make test. The change is minimal (removing dead code + routing fix) but should be verified before merge.Commit: not pushed yet — no Go toolchain available to run pre-commit checks (test/lint/fmt).