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

[bug]: --overwrite-firebase-options flag not working #311

Open
1 task done
qwadrox opened this issue Jun 6, 2024 · 3 comments
Open
1 task done

[bug]: --overwrite-firebase-options flag not working #311

qwadrox opened this issue Jun 6, 2024 · 3 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. bug Something isn't working keep open

Comments

@qwadrox
Copy link

qwadrox commented Jun 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

1.0.0

Firebase Tools version

13.10.2

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale
en-HU)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.3)
[✓] VS Code (version 1.90.0)
[✓] Connected device (6 available)
! Error: Browsing on the local area network for -- iPhone. Ensure the device is unlocked and attached with a cable or
associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!

Description

--overwrite-firebase-options Seems to not have any effect. After setting this option still asks: do you want to override it?

Example output

mateboros@Mates-MacBook-Pro my_catalog_app % flutterfire configure  --out="lib/firebase_options_dev.dart" --platforms="ios" --ios-bundle-id="com.example.myCatalogApp.dev" --ios-out="ios/dev"  --overwrite-firebase-options
✔ You have to choose a configuration type. Either build configuration (most likely choice) or a target set up. · Build configuration      
✔ Please choose one of the following build configurations · Debug-dev                                                                     
? Generated FirebaseOptions file /Users/mateboros/Documents/Github/my_catalog_app/lib/firebase_options_dev.dart already exists, do you want to override it? (y/n) › yes

Steps to reproduce

SAMPLE: https://github.com/qwadrox/my_catalog_app

  1. Run: flutterfire configure --out="lib/firebase_options_dev.dart" --platforms="ios" --ios-bundle-id="com.example.myCatalogApp.dev" --ios-out="ios/dev" --overwrite-firebase-options

Expected behavior

Should not ask to override the file. It should just override.

Screenshots

No response

Additional context and comments

No response

@qwadrox qwadrox added bug Something isn't working triage labels Jun 6, 2024
@russellwheatley
Copy link
Member

@qwadrox - Thanks, I'll get this looked at. In the mean time, you can use --yes which ought to overwrite the file 👍

@wer-mathurin
Copy link

@qwadrox This is a related bug, the same flag --no-overwrite-firebase-options is not working as well

@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 19, 2024
Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 17, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. bug Something isn't working keep open
Projects
None yet
Development

No branches or pull requests

4 participants