track pubspec.lock files #369
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
While working on #364 I observed a lint failure in CI but not locally:
(I can't link the job because GitHub doesn't follow the link correctly)
IIRC this was happening because my PR was trying to revert back to
webProviderbecauseproviderWebdidn't exist for me. To try to fix this, I tried to revert this revert, going back to theproviderWebparameter, but it didn't exist for me, so I figured my locally installed version of package:firebase_app_check must be stale.Indeed, it looks like this deprecation was just recently introduced: firebase/flutterfire@3c63826#diff-4de6eedeaecca576ac4d131446b8549c1dcebfdcaba87384c28adcd109583da7R73-R76
This PR fixes the top level .gitignore to stop ignoring
**/pubspec.lockto make sure local dev environments and CI are using the same versions of dependencies.Warning
This has the downside of CI builds not using the latest and greatest versions of dependencies. However, I don't think we are currently publishing from CI, so this isn't an issue right now. Regardless, I recommend running
flutter pub upgradewhen publishing new versions of packages from this repo and checking in those changes. Another thing we could do is use a bot to periodically upgrade packages for us, which is done in the framework repo: flutter/flutter#176764Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-devrel channel on Discord.