-
-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow arbitrary directories to be Snapshotted
We don't cache anything intermediate here, we just dump the Snapshot into the Store and return it. This is intended to be a short-term transition path to allow BinaryUtils to be consumed in the v2 engine. Some alternatives which seem reasonable: 1. Using a "root" as a Variant in a regular PathGlobs -> Snapshot request. This seems reasonable to me, but I couldn't work out how to make Variants work. 2. Exposing an intrinsic function to do this synchronously on scheduler, and returning a Snapshot, rather than exposing a custom type in a subject-product relationship. This seems perfectly reasonable, and is arguably a better model. The down side here is that the arg parsing of the globs is more fiddly to do in an intrinsic function (where we don't otherwise do that beyond a simple string) than in a product request (where we already have all of the tooling in place to make this easy).
- Loading branch information
1 parent
e001a50
commit e3a93d4
Showing
9 changed files
with
219 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.