Skip to content

Commit 4836d42

Browse files
authored
fix: cache expiry in Taskrc was not working (#2423)
1 parent 5762d5e commit 4836d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/flags/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func init() {
154154
pflag.BoolVar(&Offline, "offline", getConfig(config, func() *bool { return config.Remote.Offline }, false), "Forces Task to only use local or cached Taskfiles.")
155155
pflag.DurationVar(&Timeout, "timeout", getConfig(config, func() *time.Duration { return config.Remote.Timeout }, time.Second*10), "Timeout for downloading remote Taskfiles.")
156156
pflag.BoolVar(&ClearCache, "clear-cache", false, "Clear the remote cache.")
157-
pflag.DurationVar(&CacheExpiryDuration, "expiry", getConfig(config, func() *time.Duration { return config.Remote.Timeout }, 0), "Expiry duration for cached remote Taskfiles.")
157+
pflag.DurationVar(&CacheExpiryDuration, "expiry", getConfig(config, func() *time.Duration { return config.Remote.CacheExpiry }, 0), "Expiry duration for cached remote Taskfiles.")
158158
}
159159
pflag.Parse()
160160
}

0 commit comments

Comments
 (0)