Skip to content

Commit f6edab9

Browse files
feat: ACI-2928 Add default to config-cache-dir
1 parent 947b012 commit f6edab9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmd/saveGradleConfigurationCache.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ func init() {
6262
rootCmd.AddCommand(saveGradleConfigCacheCmd)
6363

6464
saveGradleConfigCacheCmd.Flags().String("key", "", "The cache key to use for the saved cache item (set to the Bitrise app's slug and current git branch by default)")
65-
saveGradleConfigCacheCmd.Flags().String("config-cache-dir", "", "Path to the Gradle configuration cache folder. It's usually the $PROJECT_ROOT/.gradle/configuration-cache")
66-
if err := saveGradleConfigCacheCmd.MarkFlagRequired("config-cache-dir"); err != nil {
67-
panic(err)
68-
}
65+
saveGradleConfigCacheCmd.Flags().String("config-cache-dir", "./.gradle/configuration-cache", "Path to the Gradle configuration cache folder. It's usually the $PROJECT_ROOT/.gradle/configuration-cache")
6966
}
7067

7168
func saveGradleConfigCacheCmdFn(ctx context.Context,

0 commit comments

Comments
 (0)