I remember we removed pubspec.lock from exercises, But I see that the repo-level pubspec.lock is still being tracked. I generally prefer not tracking generated files because they introduce unnecessary noise in git diffs.
If there is use case I don't know about, please do tell. Otherwise we should stop tracking it.
Edit: Tracking pubspec.lock also distrupts the branching flow. A contributor might be working or reviewing multiple branches, due to the nature of how pubspec.lock is kept in sync with the pubspec.yaml, difference in pubspec.lock's timestamp between branches requires running pub get again, which updates the pubspec.lock timestamp. So switching branches generally requires resetting the pubspec.lock
I remember we removed
pubspec.lockfrom exercises, But I see that the repo-levelpubspec.lockis still being tracked. I generally prefer not tracking generated files because they introduce unnecessary noise ingit diffs.If there is use case I don't know about, please do tell. Otherwise we should stop tracking it.
Edit: Tracking
pubspec.lockalso distrupts the branching flow. A contributor might be working or reviewing multiple branches, due to the nature of howpubspec.lockis kept in sync with thepubspec.yaml, difference inpubspec.lock's timestamp between branches requires runningpub getagain, which updates thepubspec.locktimestamp. So switching branches generally requires resetting thepubspec.lock