-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(remove): RemoveEntireDataset is better at cleaning up broken states
RemoveEntireDataset is a function that cleans up all state related to a dataset in the repository: ipfs pinning, logbook, and the refstore. It continues on despite errors happening, in order to properly clean up when problems happen. Move it to its own file, and add a test that demonstrates how it fixes a problem caused by running `qri init` followed by `rm`ing the working directory. Add better logging to the `Remove` method in order to more easily debug problems like this in the future.
- Loading branch information
Showing
9 changed files
with
452 additions
and
316 deletions.
There are no files selected for viewing
Binary file not shown.
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.