Skip to content
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

Running 'firebase init database' overwrites the firebase.json file completely. #3299

Closed
NickChittle opened this issue Apr 21, 2021 · 2 comments · Fixed by #3445
Closed

Running 'firebase init database' overwrites the firebase.json file completely. #3299

NickChittle opened this issue Apr 21, 2021 · 2 comments · Fixed by #3445

Comments

@NickChittle
Copy link
Contributor

NickChittle commented Apr 21, 2021

[REQUIRED] Environment info

firebase-tools:

firebase --version
9.10.0

Platform: Ubuntu

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

  • firebase init firestore
  • Go through firestore workflow
  • cat firebase.json // Observe that this file has some firestore related configuration in it.
  • firebase init database
  • Go through the database workflow
  • cat firebase.json
  • The firestore section has been overwritten, which does not happen when combined with other products.

[REQUIRED] Expected behavior

Firebase init should be additive for all products

[REQUIRED] Actual behavior

Firebase init database overwrites all other configuration.

@samtstern
Copy link
Contributor

@NickChittle yikes! I was able to reproduce this.

@samtstern
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants