From 0591412caf0b54acb9f7f2d10460c9d4cbe5d72f Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Tue, 16 Apr 2024 09:14:24 -0400 Subject: [PATCH] Disable git cache on CI --- lib/src/utils/context.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/utils/context.dart b/lib/src/utils/context.dart index c8321f43..78da915e 100644 --- a/lib/src/utils/context.dart +++ b/lib/src/utils/context.dart @@ -119,7 +119,9 @@ class FVMContext with FVMContextMappable { /// Flag to determine if should use git cache @MappableField() bool get gitCache { - return config.useGitCache != null ? config.useGitCache! : true; + final useGitCache = config.useGitCache != null ? config.useGitCache! : true; + + return useGitCache && !isCI; } /// Run pub get on sdk changes