-
Notifications
You must be signed in to change notification settings - Fork 902
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
Revisit whether CLI should wipe the emulator export directory #3600
Comments
The way the emulators were started is probably to blame: In the working path, we used:
This produced the relevant export files:
And has worked OK for us until now, however at least only the exported files would be deleted by this bug and not the whole working folder alongside other important files. Still, loosing data on export is really bad. Also, perhaps the tool could verify that the path is not the same working directory if there is a risk of confusion at export time? |
Almost lost a project today because of this. Take a look at this PR, it proposes a basic fix for this cenario. #4127 |
Workaround was released (#4127), repurpose this issue to track potentially revisiting the deletion behavior |
Consolidating the discussion to #3962. |
[REQUIRED] Environment info
firebase-tools:
Platform:
macOS
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
Emulators shut down and data is exported.
[REQUIRED] Actual behavior
Emulators print an error and the WHOLE FOLDER IS DELETED.
I am also unable to see the logs as the logs are deleted together with the working directory.
The text was updated successfully, but these errors were encountered: