-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would a "Directory" Index be useful? #810
Comments
related, with #648 @luizirber opened up the possibility of exploring zip files full of signatures... |
Would a file-of-files approach be preferable (or complementary)? One example: I tried to index an SBT by using the leaf nodes from an existing SBT, but Another benefit of the FoF approach is that you can pass 'dynamically' from the command-line: |
yes for file-of-files approach - this was requested in #662 too. |
hmm, while #1059 adds file-of-files, we don't test loading the file-of-files from stdin. Good idea. |
but what I really stopped by to say was, the changes in #1059 have made me realize that something that would be very useful is a better Index subclass for representing collections of signature files, e.g. the results from both file-of-files and directory traversal. In particular, right now when using the generic This caused a bit of pain in |
I dug into this a little bit, as part of research for ZipFileLinearIndex refactoring.
one thought is we could support an "originates from" field in signatures, as in "this signature was loaded from <here>" And maybe that origin should be a URL that can be interpreted nicely for the user, but also provided in machine-readable format in our various output formats? |
(what this defaults to for internally-created signatures is 🤷 ) |
note that the lazy loading Index issue asks for a way to find the location from which a signature was loaded. convergence! However, that issue needs the location to be outside the |
|
Fixed in #1406 with function |
Fixed in #1406 with the new |
I've been thinking about the idea of a
DirectoryIndex
that would replace the explicit functionality of directory traversal by encapsulating it within a subclass ofIndex
. It seems like a nice abstraction, and as we develop further filtering and signature selection mechanisms (e.g. chaining) on top ofIndex
objects, it'd be nice to have them apply to directory traversal.The most basic form of
DirectoryIndex
would be something that simply traversed the directory every timesignatures()
was called. We could also imagine adding one that loads the signatures once and/or caches them, but that might get too memory intensive.Any thoughts?
The text was updated successfully, but these errors were encountered: