这是indexloc提供的服务,不要输入任何密码
Skip to content

emulators:export doesn't check if the target folder is empty... #6313

@real-marshal

Description

@real-marshal

[REQUIRED] Environment info

firebase-tools: 12.4.6

Platform: Fedora

[REQUIRED] Test case

If you run firebase emulators:export ., your working directory will be rimraf'd.

[REQUIRED] Steps to reproduce

Run firebase emulators:export .

[REQUIRED] Expected behavior

The command makes sure the path is empty and warns of deleting everything there. I see there's a --force flag, which I guess should prevent this check, but I didn't use it, yet still got this insane result.

[REQUIRED] Actual behavior

Everything just disappears, all the code you haven't pushed yet gets completely obliterated...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions