chore: Ignore platform-generated build files to improve DX
Nobody has claimed this yet.
- #631 by @bhola-dev58 — closed without merging
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- flutter, git
- Domain
- build-system, developer-experience
Research direction
Start with the root .gitignore and inspect the listed linux/flutter/generated_plugin_registrant.cc, linux/flutter/generated_plugins.cmake, macos/Flutter/GeneratedPluginRegistrant.swift, pubspec.lock, and Windows equivalents. Check their current tracking status with git before proceeding. Done means flutter pub get or local tests no longer leave these paths as unwanted working-tree changes.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Dart
- Stars
- 246
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CCExtractor/taskwarrior-flutter
-
Fix misaligned text "Select the directory" in settings tileMay be free again @alabeddev claimed this 241 days ago, and no pull request is open. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CCExtractor/taskwarrior-flutter#639 · 2 comments ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Drawer should close automatically when navigating to a new screenMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Sensitive Credentials Stored in Plain Text Files Without EncryptionMay be free again @sahu-virendra-1908 claimed this 238 days ago, and no pull request is open. Openbug
Difficulty 5/5 Over a week Newbie friendliness 45/100
CCExtractor/taskwarrior-flutter#645 · 1 comment ·
All issues in CCExtractor/taskwarrior-flutter
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 60/100
hiddify/hiddify-app#2668 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
toyota-connected/emb_cli#358 ·
Maintainers usually reply within 1 day
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ibanner56/CallersCompendium#2366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ccch1mneyyy/dsh-Go#1777 ·
Maintainers usually reply within 1 day
-
area: mobile documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
CommandLineCoding/Elephant#383 ·
Maintainers usually reply within 1 day