qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.1k stars 66 forks source link

errored "init" command leaves repo in a bad state #1013

Closed b5 closed 4 years ago

b5 commented 4 years ago

qri init currently isn't transactional. If a user attempts to initialize a dataset, but fails at one of the steps, on the CLI, they can end up in a state where a .qri-ref file exists, but not ref has been stored.

Errors in the init process should roll back to a clean state

dustmop commented 4 years ago

Fixed by https://github.com/qri-io/qri/pull/1018.