mirror of
https://github.com/flutter/flutter
synced 2024-06-28 14:44:37 +00:00
add .pub-cache back to .gitignore (#128894)
Fixes https://github.com/flutter/flutter/issues/128635
In 1fd84f88e9
, we renamed the `.pub-cache` entry in the `.gitignore` file to `.pub-preload-cache`, and ensured the packaging script was now populating that directory. However, for users who already had this directory from downloading an earlier archive but used `flutter upgrade` to get the latest code, they now had a `.gitignore` file that was no longer ignoring their `.pub-cache` directory.
Now, when these users try to `flutter upgrade` again, the tool tries to verify if their checkout is clean, and will exit early if not directing the user to either stash or commit these changes, or do `flutter upgrade --force` which will try to update their branch anyway (and which would succeed since there would be no git conflict). These change adds back the `.pub-cache` entry to `.gitignore`, which won't retroactively fix broken releases, but will at least ensure if they `flutter upgrade --force` once to get this fix, they won't need to again.
This commit is contained in:
parent
12f2cbcb21
commit
d3e771c80b
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,6 @@
|
|||
# Do not remove or rename entries in this file, only add new ones
|
||||
# See https://github.com/flutter/flutter/issues/128635 for more context.
|
||||
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.lock
|
||||
|
@ -53,6 +56,7 @@ analysis_benchmark.json
|
|||
**/generated_plugin_registrant.dart
|
||||
.packages
|
||||
.pub-preload-cache/
|
||||
.pub-cache/
|
||||
.pub/
|
||||
build/
|
||||
flutter_*.png
|
||||
|
|
Loading…
Reference in New Issue
Block a user