chore: Ignore platform-generated build files to improve DX
还没有人认领这个 Issue。
- #631 来自 @bhola-dev58 —— 已关闭,未合并
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- flutter, git
调研方向
从根目录的 .gitignore 开始,检查其中列出的 linux/flutter/generated_plugin_registrant.cc、linux/flutter/generated_plugins.cmake、macos/Flutter/GeneratedPluginRegistrant.swift、pubspec.lock 以及 Windows 对应文件。继续之前,使用 git 检查它们当前的跟踪状态。当 flutter pub get 或本地测试不再使这些路径作为不需要的工作树变更留下时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
improvement idea
Currently,
when developers run flutter pub get or test the app locally, Flutter auto-generates platform-specific build files
linux/flutter/generated_plugin_registrant.cc
linux/flutter/generated_plugins.cmake
macos/Flutter/GeneratedPluginRegistrant.swift
pubspec.lock
windows/flutter/generated_plugin_registrant.cc
windows/flutter/generated_plugins.cmake
depending on local dependencies.
This creates dirty working directories and forces contributors to manually discard changes before committing.
To improve the Developer Experience (DX) and prevent unwanted files from being committed, these paths should be added to .gitignore.
My proposed solution
- I will append the specific paths of the auto-generated platform files to the
.gitignoreat the root of the project.- Run
git rm --cached <file_paths>to untrack these files from the Git repository history so they immediately stop causing merge conflicts for new branches.
By taking these simple steps, we completely automate ignore rules, keeping all future Pull Requests clean from randomly generated machine-specific code.
I am currently working on a PR for this to help out the team.
- 主要语言
- Dart
- 星标
- 244
- 派生
- 180
- 平均合并
- 16 小时 19 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CCExtractor/taskwarrior-flutter 的其他 Issue
-
Fix misaligned text "Select the directory" in settings tile可能重新可做 @alabeddev 于 202 天前认领,目前没有进行中的 PR。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
CCExtractor/taskwarrior-flutter#639 · 2 条评论 ·
-
bug
难度 1/5 1 小时以内 新手友好度 85/100
-
Drawer should close automatically when navigating to a new screen可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
-
Sensitive Credentials Stored in Plain Text Files Without Encryption可能重新可做 @sahu-virendra-1908 于 199 天前认领,目前没有进行中的 PR。 未关闭bug
难度 5/5 一周以上 新手友好度 45/100
CCExtractor/taskwarrior-flutter#645 · 1 条评论 ·
-
Data Inconsistency When Editing Task (Missing Transaction)可能重新可做 @aryanorastar 于 60 天前认领,目前没有进行中的 PR。 未关闭bug
难度 4/5 3-5 天 新手友好度 52/100
CCExtractor/taskwarrior-flutter#643 · 1 条评论 ·
查看 CCExtractor/taskwarrior-flutter 的全部 Issue
相似的 Issue
-
backlog:low bug localization
难度 2/5 1-3 小时 新手友好度 72/100
simonoppowa/OpenNutriTracker#1366 ·
维护者通常 1 天内回复
-
backlog documentation good first issue priority: medium
难度 2/5 半天 新手友好度 78/100
-
coverage 1.16.0: format_coverage fails on the `{}` that `dart test --coverage` writes for fully skipped suites可能已有人在做 @amanmaurya92 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 65/100
finamp-app/finamp#1804 ·
维护者通常 9 天内回复
-
fyi-ecosystem platform-ios team-ios
难度 1/5 1 小时以内 新手友好度 70/100
flutter/flutter#194348 · 1 条评论 ·
维护者通常 1 天内回复