[bug]: --overwrite-firebase-options flag not working
评估
调研方向
首先,使用现有输出文件复现报告中的 flutterfire configure 命令,然后跟踪 --overwrite-firebase-options 标志的解析和使用方式。当该标志存在时,命令能够在不请求确认的情况下覆盖指定文件,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 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
- 主要语言
- Dart
- 星标
- 195
- 派生
- 77
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
invertase/flutterfire_cli 的其他 Issue
-
bug Needs Attention Stale triage
难度 3/5 1-2 天 新手友好度 55/100
invertase/flutterfire_cli#467 · 1 条评论 · 1 个 reaction ·
-
[bug]: upload symbols fails with Flutter 3.44 because the SourcePackages have moved可能已有人在做 @TatsuUkraine 于 87 天前认领。 未关闭bug Needs Attention triage
难度 3/5 1-2 天 新手友好度 68/100
invertase/flutterfire_cli#443 · 20 条评论 · 14 个 reaction ·
-
bug Needs Attention triage
难度 3/5 1-2 天 新手友好度 66/100
invertase/flutterfire_cli#428 · 14 条评论 · 4 个 reaction ·
-
blocked: customer-response bug enhancement keep open
难度 4/5 3-5 天 新手友好度 45/100
invertase/flutterfire_cli#403 · 1 条评论 · 1 个 reaction ·
-
[bug]: flutterfire configure fails on reusing firebase.json可能已有人在做 @Lyokone 于 30 天前认领。 未关闭blocked: customer-response bug keep open
难度 3/5 1-2 天 新手友好度 42/100
invertase/flutterfire_cli#353 · 6 条评论 ·
查看 invertase/flutterfire_cli 的全部 Issue
相似的 Issue
-
'图片收藏'功能无法滑动未关闭
难度 2/5 1-3 小时 新手友好度 68/100
venera-app/venera-prime#50 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Tencent/tdesign-flutter#1229 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
VeryGoodOpenSource/very_good_analysis#254 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
flutter/agent-plugins#253 ·