AOSSIE-Org / AOSSIE-Org/Ell-ena

feat: `.metadata` file (Flutter SDK metadata) is committed to the repository — it contains local Flutter SDK path references and should be gitignored

Offen
#293 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
54
Forks
110
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 🐛 Problem Statement

The file `.metadata` is committed at the repository root. This is a Flutter SDK-generated file that records the Flutter channel, version, and local project path on the original developer's machine. Its committed content looks like:

```yaml
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
version:
revision: "abc123..."
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: "abc123..."
base_revision: "abc123..."
```

**Problems:**
1. The `revision` field locks the project to a specific Flutter commit hash on the original developer's machine. Contributors with a different Flutter version see confusing `flutter migrate` suggestions.
2. The file path in some `.metadata` variants includes the local filesystem path, leaking directory structure information.
3. The Flutter documentation explicitly states `.metadata` is a local tool file and should not be version-controlled.

## Fix Required

```bash
# Remove from git tracking
git rm --cached .metadata

# Add to .gitignore (Flutter's standard gitignore already includes this,
# but it may have been missing or overridden)
echo ".metadata" >> .gitignore

git commit -m "chore: remove .metadata from version control — Flutter local tool file"
```

Also verify the `.gitignore` includes all standard Flutter-generated files:
```gitignore
# Flutter/Dart tool files
.metadata
*.iml
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
build/
```

## Files to Modify

| File | Change |
|---|---|
| `.metadata` | Remove from git tracking |
| `.gitignore` | Confirm `.metadata` and other Flutter tool files are listed |

**Suggested labels:** `chore`, `good first issue`, `level: beginner`

I would like to work on this. Could you please assign it to me?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.