Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 34d57db

Browse files
authored
Correct --use-strategies=false
There is a type where UseStrategiesFlagCore is repeated and t3c does not allow to use --use-strategy=false
1 parent ed9795f commit 34d57db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache-config/t3c-apply/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func GetCfg(appVersion string, gitRevision string) (Cfg, error) {
314314

315315
const useStrategiesFlagName = "use-strategies"
316316
const defaultUseStrategies = t3cutil.UseStrategiesFlagFalse
317-
useStrategiesPtr := getopt.EnumLong(useStrategiesFlagName, 0, []string{string(t3cutil.UseStrategiesFlagTrue), string(t3cutil.UseStrategiesFlagCore), string(t3cutil.UseStrategiesFlagCore), ""}, "", "[true | core| false] whether to generate config using strategies.yaml instead of parent.config. If true use the parent_select plugin, if 'core' use ATS core strategies, if false use parent.config.")
317+
useStrategiesPtr := getopt.EnumLong(useStrategiesFlagName, 0, []string{string(t3cutil.UseStrategiesFlagTrue), string(t3cutil.UseStrategiesFlagCore), string(t3cutil.UseStrategiesFlagFalse), ""}, "", "[true | core| false] whether to generate config using strategies.yaml instead of parent.config. If true use the parent_select plugin, if 'core' use ATS core strategies, if false use parent.config.")
318318

319319
const useLocalATSVersionFlagName = "local-ats-version"
320320
useLocalATSVersionPtr := getopt.BoolLong(useLocalATSVersionFlagName, 0, "[true | false] whether to use the local installed ATS version for config generation. If false, attempt to use the Server Package Parameter and fall back to ATS 5. If true and the local ATS version cannot be found, an error will be logged and the version set to ATS 5. Default is false")

0 commit comments

Comments
 (0)