[flutter_tool] remove ability to disable Fingerprinter with DISABLE_FLUTTER_BUILD_CACHE env variable (#46913)
This commit is contained in:
@@ -10,18 +10,10 @@ import '../convert.dart' show json;
|
||||
import '../globals.dart';
|
||||
import '../version.dart';
|
||||
import 'file_system.dart';
|
||||
import 'platform.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
typedef FingerprintPathFilter = bool Function(String path);
|
||||
|
||||
/// Whether to completely disable build caching.
|
||||
///
|
||||
/// This is done by always returning false from fingerprinter invocations. This
|
||||
/// is safe to do generally, because fingerprinting is only a performance
|
||||
/// improvement.
|
||||
bool get _disableBuildCache => platform.environment['DISABLE_FLUTTER_BUILD_CACHE']?.toLowerCase() == 'true';
|
||||
|
||||
/// A tool that can be used to compute, compare, and write [Fingerprint]s for a
|
||||
/// set of input files and associated build settings.
|
||||
///
|
||||
@@ -57,9 +49,6 @@ class Fingerprinter {
|
||||
}
|
||||
|
||||
bool doesFingerprintMatch() {
|
||||
if (_disableBuildCache) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
final File fingerprintFile = fs.file(fingerprintPath);
|
||||
if (!fingerprintFile.existsSync()) {
|
||||
|
||||
Reference in New Issue
Block a user