Skip to content
Discussion options

You must be logged in to vote

The root changes on three axes - path, size, and content digest - and the sort only removes discovery order from the equation, not placement.

  1. A move changes the root. The fold includes the path field, so renaming or relocating a file with identical bytes produces a different root. That is intentional: provenance is about the artifact as it sits in the workspace, and a move is a real change to what you would ship.

  2. Sorting makes the root canonical, nothing more. Two scans that find the same set of files in different order must produce the same root; that is what the sort guarantees. It does not normalize paths - ./a.txt and a.txt are different strings unless the scanner normalizes befor…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by camillejackson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants