-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing storage location for a collection in RevIndex (#3015)
As part of sourmash-bio/branchwater#4 I hit a pretty big drawback on the `RevIndex::open` API: it has no way of dealing with the `Collection` storage moving to another location. This also means that the index is non-relocatable if the `Collection` uses a relative path to where the index was built originally =( I started by making a test that build an index, move the sigs to another location, then try to open the index without passing a new location (should error), and then passing an updated location (should work). This break semantic versioning (added argument to `open`), so requires a version bump. Since it will be a version bump, I also added the `[non_exhaustive]` annotation to `SourmashError`, even tho this PR is not updating it, because it would always be a breaking change if we add a new error and don't require users to check for all cases (if matching explicitly). --- I didn't dump the RevIndex version because there are no changes to the file format, should be compatible with existing DBs
- Loading branch information
Showing
5 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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