Skip to content

Commit 9e73ed4

Browse files
remove language experiment, this is guarded by being in an alpha release
1 parent 264d206 commit 9e73ed4

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

internal/experiments/experiment.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ const (
2525
PreconditionsPostconditions = Experiment("preconditions_postconditions")
2626
EphemeralValues = Experiment("ephemeral_values")
2727
UnknownInstances = Experiment("unknown_instances")
28-
Actions = Experiment("actions")
2928
)
3029

3130
func init() {
3231
// Each experiment constant defined above must be registered here as either
3332
// a current or a concluded experiment.
34-
registerCurrentExperiment(Actions)
3533
registerConcludedExperiment(UnknownInstances, "Unknown instances are being rolled into a larger feature for deferring unready resources and modules.")
3634
registerConcludedExperiment(VariableValidation, "Custom variable validation can now be used by default, without enabling an experiment.")
3735
registerConcludedExperiment(VariableValidationCrossRef, "Input variable validation rules may now refer to other objects in the same module without enabling any experiment.")

internal/terraform/node_action.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
package terraform
55

66
import (
7-
"fmt"
8-
97
"github.com/hashicorp/terraform/internal/addrs"
108
"github.com/hashicorp/terraform/internal/configs"
119
"github.com/hashicorp/terraform/internal/dag"
12-
"github.com/hashicorp/terraform/internal/experiments"
1310
"github.com/hashicorp/terraform/internal/lang/langrefs"
1411
"github.com/hashicorp/terraform/internal/providers"
1512
"github.com/hashicorp/terraform/internal/tfdiags"
@@ -97,18 +94,6 @@ func (n *nodeExpandActionDeclaration) DynamicExpand(ctx EvalContext) (*Graph, tf
9794

9895
// Check if the actions language experiment is enabled for this module.
9996
moduleCtx := evalContextForModuleInstance(ctx, module)
100-
allowActions := moduleCtx.LanguageExperimentActive(experiments.Actions)
101-
if !allowActions {
102-
summary := fmt.Sprintf("Actions experiment not enabled for module %s", module)
103-
if module.IsRoot() {
104-
summary = "Actions experiment not enabled"
105-
}
106-
return nil, diags.Append(tfdiags.Sourceless(
107-
tfdiags.Error,
108-
summary,
109-
"The actions experiment must be enabled in order to use actions in your configuration. You can enable it by adding a terraform { experiments = [actions] } block to your configuration.",
110-
))
111-
}
11297

11398
// recordActionData is responsible for informing the expander of what
11499
// repetition mode this resource has, which allows expander.ExpandResource

0 commit comments

Comments
 (0)