fix(repair-built-stamp): patch the published PACKAGES.rds once bincraft drops cranlike #236
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/repair-built-stamp-without-cranlike"
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?
Follow-up to https://codefloe.com/rpkgs/bincraft/pulls/228 (bincraft#33), which drops the cranlike and desc forks.
Why
After that change,
upload_package_index()no longer keeps aPACKAGES.db.It reuses the records of the slot's published
PACKAGES.rds, as long as each tarball is still listed with the same ETag.local/repair-built-stamp.RpatchedPACKAGES.db, so it would stop having any effect.Changes
local/repair-built-stamp.Rnow patchesBuiltin each slot'sPACKAGES.rdsand then re-emits the index.Path, or a per-minor slot's rows whosePathis its minor.PACKAGES.dbas before, so merge order does not matter.bincraft::built_stamp()was never exported, so the script failed at that line before this change; it now callsbincraft:::built_stamp().GITHUB_PATcomments inreindex,weekly-rebuild-reindexandbackfill-flat-safetynow give the current reason: bincraft reads DESCRIPTIONs from raw.githubusercontent.com.upload_package_index()instead of the forks.Testing
Tested against a moto S3 bucket, with bincraft installed from the bincraft#228 branch:
Builtstamps were set toR 4.5.0; NA; ....--applyrewrote the 3 stamps, and the re-emit loggedIndex records: 5 reused, 0 read, 0 unreadable.PACKAGESthen had a valid stamp on all 5 records.PACKAGES.db.The stale
PACKAGES.dbobjects in the slots can be deleted once a bincraft release with #228 is in use.