firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

"firebase init" fails if storage is selected without a default project

Open kroikie opened this issue 1 year ago • 0 comments

[REQUIRED] Environment info

firebase-tools: 11.8.0

Platform: macOS

[REQUIRED] Test case

Initialize firebase selecting storage without a default project.

[REQUIRED] Steps to reproduce

  1. firebase init
  2. select "storage"
  3. select "Don't set up a default project"
  4. Error!!!

[REQUIRED] Expected behavior

Initialization should complete successfully. Maybe by skipping any calls to Cloud Storage if no default project option is selected.

[REQUIRED] Actual behavior

Initialization fails with error:

Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Storage requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations

kroikie avatar Aug 23 '22 00:08 kroikie