Skip to content

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

Closed

Description

@NickChittle

[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.

Activity

  1. samtstern commented on Jun 3, 2021

    @samtstern
    Contributor

    @NickChittle yikes! I was able to reproduce this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions