fix: derive directories from manifest when DB column is empty (pre-rc12 repos)
Old snapshots pushed before rc12 have directories=[] in the DB even when the snapshot_id was computed with a non-empty directory list. The push client derives directories from file paths using directories_from_manifest, but the server wasn't storing them for delta-only rows and some early full-manifest rows.
_snap_row_to_wire and _snap_row_to_wire_s3 now call directories_from_manifest as a fallback when row.directories is empty. Since hash_snapshot includes dirs only when truthy, and directories_from_manifest produces the same sorted parent-path set the client computed, the reconstructed snapshot_id matches.
sha256:e9f33a1593cab77c39f8aa7c876316b2f9543a177d8f8b71598656699b5fcf6f
sha
~2
symbols
1 changed · 970 in snapshot
files
sha256:f1c135f6b8be5b291c2bf467c8471a605bbde1e48d7c107710997765885be4db
snapshot
~2
symbols modified
1
file changed
970
files in snapshot
0
dead code introduced
Semantic Changes
2 symbols
Files Changed
~1
970 in snapshot
~1
970 in snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:e9f33a1593cab77c39f8aa7c876316b2f9543a177d8f8b71598656699b5fcf6f --body "your comment"
No comments yet. Be the first to start the discussion.