https://pantsbuild.org/ logo
w

witty-crayon-22786

07/24/2020, 11:31 PM
i had roughly looked at a hierarchy like this for the “compute Paths without Snapshotting them” change:
Copy code
Snapshot    <- Digest <- Paths <- PathGlobs
DigestContents <-
hm. having copied that again, i’m not sure why i did
Snapshot <- Digest
there.
perhaps that was ergonomic, because you can discard the Paths immediately if you don’t need them.
but the implementation is roughly: 1) expand PathGlobs into Path(Stats), 2) digest all Paths to compute a Digest for the whole thing, 3) compose the Digest and the Paths into a Snapshot