feat: released not stable

This commit is contained in:
Pete Davison
2026-07-01 15:59:11 +00:00
parent 468cacd4ca
commit ff9c4f24a9
2 changed files with 7 additions and 7 deletions

View File

@@ -38,13 +38,13 @@ func New(xName string, config *ast.TaskRC, allowedValues ...int) Experiment {
return x
}
// NewStable creates a new experiment that is stable and no longer needs to be
// enabled. It will always be inactive and cannot be enabled.
func NewStable(xName string, config *ast.TaskRC) Experiment {
// NewReleased creates a new experiment that is released and no longer needs to
// be enabled. It will always be inactive and cannot be enabled.
func NewReleased(xName string, config *ast.TaskRC) Experiment {
x := Experiment{
Name: xName,
Value: getValue(xName, config),
InactiveReason: "is stable and no longer needs to be enabled",
InactiveReason: "is released and no longer needs to be enabled",
}
xList = append(xList, x)
return x

View File

@@ -43,9 +43,9 @@ func ParseWithConfig(dir string, config *ast.TaskRC) {
GentleForce = New("GENTLE_FORCE", config, 1)
EnvPrecedence = New("ENV_PRECEDENCE", config, 1)
// Inactive experiments
AnyVariables = NewStable("ANY_VARIABLES", config)
MapVariables = NewStable("MAP_VARIABLES", config)
RemoteTaskfiles = NewStable("REMOTE_TASKFILES", config)
AnyVariables = NewReleased("ANY_VARIABLES", config)
MapVariables = NewReleased("MAP_VARIABLES", config)
RemoteTaskfiles = NewReleased("REMOTE_TASKFILES", config)
}
// Validate checks if any experiments have been enabled while being inactive.