Enable --explicit-package-dependencies by default. (#160289)

Closes https://github.com/flutter/flutter/issues/160257.

~~This will sit on CI for a bit and give me a better idea of how much
work there is to do.~~ Done!

## IMPORTANT: Do **not** revert on 1-2 isolated post-submit failures.

While I've spent the last several weeks getting this passing all
presubmit tests, and some integration tests I suspected might be
affected, it is possible that there are 1-2 integration tests that will
fail as a result of landing this PR. I'll disable the flag
(`--no-explicit-package-dependencies`) if the failures look obvious
enough, otherwise I'll revert.
This commit is contained in:
Matan Lurey
2025-02-21 11:25:16 -08:00
committed by GitHub
parent 4d50910b8a
commit 043b71954c
10 changed files with 277 additions and 260 deletions

View File

@@ -166,7 +166,7 @@ const Feature swiftPackageManager = Feature(
);
/// Enable explicit resolution and generation of package dependencies.
const Feature explicitPackageDependencies = Feature(
const Feature explicitPackageDependencies = Feature.fullyEnabled(
name: 'support for dev_dependency plugins',
configSetting: 'explicit-package-dependencies',
extraHelpText:
@@ -178,9 +178,6 @@ const Feature explicitPackageDependencies = Feature(
'See also:\n'
'* https://flutter.dev/to/flutter-plugins-configuration.\n'
'* https://flutter.dev/to/flutter-gen-deprecation.',
master: FeatureChannelSetting(available: true),
beta: FeatureChannelSetting(available: true),
stable: FeatureChannelSetting(available: true),
);
/// A [Feature] is a process for conditionally enabling tool features.