chore: Ignore platform-generated build files to improve DX

Open
#630 0 comments 0 reactions 0 assignees View on GitHub

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

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

enhancement
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
  1. I will append the specific paths of the auto-generated platform files to the .gitignore at the root of the project.
  2. 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CCExtractor/taskwarrior-flutter

All issues in CCExtractor/taskwarrior-flutter

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.