cog_mirror() should hash a file it has just copied or downloaded #91

Open
opened 2026-11-23 15:07:26 -05:00 by jared · 0 comments
Owner

Filed 2026-11-23 from nss_land's phase 5 plan ("Found while planning", Civilytics/nss_land#41).

cog_mirror() does not hash a file it has just copied or downloaded, only one already present (R/mirror.R:96-117 at ba57f9c). A truncated download is reported as downloaded. nss_land's nss_mirror() hashes every file it copies and refuses a mismatch; the same check here would make a finished mirror trustworthy.

Filed 2026-11-23 from nss_land's phase 5 plan ("Found while planning", Civilytics/nss_land#41). `cog_mirror()` does not hash a file it has just copied or downloaded, only one already present (`R/mirror.R:96-117` at `ba57f9c`). A truncated download is reported as `downloaded`. nss_land's `nss_mirror()` hashes every file it copies and refuses a mismatch; the same check here would make a finished mirror trustworthy.
jared added the
ws
corpus
type
defect
origin
review
labels 2026-11-23 15:07:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Civilytics/uscogdata#91