eval

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MPL-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package eval aims to encapsulate the details of evaluating the objects in an overall configuration, including all of the expressions written inside their declarations, in a way that can be reused across various different phases of execution.

The scope of this package intentionally excludes concepts like prior state, plans, etc, focusing only on dealing with the relationships between objects in a configuration. This package is therefore intended to be used as an implementation detail of higher-level operations like planning, with the caller using the provided hooks to incorporate the results of side-effects managed elsewhere.

Index

Constants

This section is empty.

Variables

View Source
var NewStaticPlugins = evalglue.NewStaticPlugins

Functions

func InputValuesForTesting

func InputValuesForTesting(vals map[string]cty.Value) exprs.Valuer

InputValuesForTesting returns input variable definitions based on a constant map, intended for convenient test setup in unit tests where it only matters what the variable values are and not how they are provided.

Types

type ApplyGlue

type ApplyGlue interface {
	// ResourceInstanceFinalState blocks until the apply phase has completed
	// enough work to decide the final state value for the resource instance
	// with the given address and then returns that value.
	//
	// If operations that would contribute to that final value fail then this
	// function returns a suitable placeholder for the final state that can
	// would allow valid dependent expressions to evaluate successfully though
	// potentially to an unknown value. Returning the "planned state" that
	// was predicted during the planning phase is acceptable, and returning
	// [cty.DynamicVal] is also acceptable as a last resort when absolutely
	// no information is available.
	//
	// Diagnostics from apply-time actions must be reported through some other
	// channel controlled by the apply engine itself.
	ResourceInstanceFinalState(ctx context.Context, addr addrs.AbsResourceInstance) cty.Value
}

ApplyGlue is used with [DriveApplying] to allow the evaluation system to communicate with the applying engine that called it.

Methods of this type can be called concurrently with each other and with themselves, so implementations must use appropriate synchronization primitives to avoid race conditions.

type ApplyOracle

type ApplyOracle struct {
	// contains filtered or unexported fields
}

An ApplyOracle is returned by ConfigInstance.ApplyOracle to give the main apply engine access to various information from the configuration that it will need during the apply process.

All methods of an ApplyOracle must be called with a context.Context derived from one produced by grapheval.ContextWithWorker.

Whereas the planning process is driven primarily by the dependencies discovered dynamically during evaluation, the apply process is instead driven primarily by an execution graph that was built during the planning process. The apply-time execution steps therefore need to be able to pull the information they need from the evaluation engine on request instead of the evaluation engine pushing the information out, and an object of this type provides that information.

It's the responsibilty of the planning engine to construct an execution graph that ensures that the apply phase will request information from the oracle only once it has already been made available by earlier work.

func (*ApplyOracle) Close

func (*ApplyOracle) DesiredResourceInstance

DesiredResourceInstance returns the DesiredResourceInstance object associated with the given resource instance address, or nil if the given address does not match a desired resource instance.

This API assumes that the apply phase is working from an execution graph built during the planning phase and is therefore relying on the plan phase to correctly describe a subset of the desired resource instances so that this should never return nil. If this _does_ return nil then that suggests a bug in the planning engine, which caused it to create an incorrect execution graph.

func (*ApplyOracle) ForkModuleOutputs added in v0.34.0

func (o *ApplyOracle) ForkModuleOutputs(ctx context.Context, addr addrs.ModuleInstance) cty.Value

ForkModuleOutputs returns the outputs object of the module instance addr during the apply, or cty.NilVal if there is no such module instance.

func (*ApplyOracle) ProviderInstance

ProviderInstanceConfig returns the configuration value for the given provider instance, or cty.NilVal if there is no such provider instance.

This API assumes that the apply phase is working from an execution graph built during the planning phase and is therefore relyingo n the plan phase to refer only to provider instances that are present ni the configuration. If this _does_ return cty.NilVal then that suggests a bug in the planning engine, causing it to create an incorrect execution graph.

func (*ApplyOracle) ResourceInstanceObjectMeta

ResourceInstanceObjectMeta collects all of the metadata provided by modules on the path to the specified resource instance object, ordered by module instance depth with the shallowest module instance first.

The apply engine will generally need to combine the result with information from the prior state to produce the full set of metadata for a resource instance object, since this result only reflects what's currently present in the configuration and so is likely to be lacking some or all information for non-desired objects.

If the given address identifies an object in a module instance that is not currently in the configuration then the result only includes information from the prefix module instances that are currently declared, including possibly no results at all.

This function always succeeds but may include unknown values as placeholders for metadata whose configuration is defined in an invalid way. The caller is expected to concurrently connect diagnostics from module instances in the configuration, which would then include any errors related to with the metadata settings.

func (*ApplyOracle) RootOutputs

func (o *ApplyOracle) RootOutputs(ctx context.Context) RootModuleOutputs

type ConfigCall

type ConfigCall struct {
	// RootModuleSource is the source address of the root module.
	//
	// This must be a source address that can be resolved by the
	// [ExternalModules] implementation provided in EvalContext.
	RootModuleSource addrs.ModuleSource

	// InputValues describes how to obtain values for the input variables
	// declared in the root module.
	//
	// In typical use the InputValues object is assembled based on a combination
	// of ".tfvars" files, CLI arguments, and environment variables, but that's
	// the responsibility of the Tofu CLI layer and so this package is totally
	// unopinionated about how those are provided, so e.g. for .tftest.hcl "run"
	// blocks the input values could come from the test scenario configuration
	// instead.
	//
	// In unit tests where the source of input variables is immaterial,
	// [InputValuesForTesting] might be useful to build values for this
	// field inline in the test code.
	InputValues exprs.Valuer

	// AllowImpureFunctions controls whether to allow full use of a small
	// number of functions that produce different results each time they are
	// called, such as "timestamp". This should be set to true only during
	// the apply phase and in some more contrived situations such as in the
	// "tofu console" command's REPL.
	AllowImpureFunctions bool

	// EvalContext describes the context where the call is being made, dealing
	// with cross-cutting concerns like which providers are available and how
	// to load them.
	EvalContext *evalglue.EvalContext
}

ConfigCall describes a call to a root module that acts conceptually like a "module" block but is instead implied by something outside of the module language itself, such as running an OpenTofu CLI command.

type ConfigInstance

type ConfigInstance struct {
	// contains filtered or unexported fields
}

ConfigInstance represents the combination of a configuration and some input variables used to call into its root module, along with related context such as available providers and module packages.

func NewConfigInstance

func NewConfigInstance(ctx context.Context, call *ConfigCall) (*ConfigInstance, tfdiags.Diagnostics)

NewConfigInstance builds a new ConfigInstance based on the information in the given ConfigCall object.

If the returned diagnostics has errors then the first result is invalid and must not be used.

Note that this function focuses only on checking that the call itself seems sensible, and does not perform any immediate evaluation of the configuration, so success of this function DOES NOT imply that the configuration is valid. Use methods of a valid [`ConfigInstance`] produced by this function to gather more information about the configuration.

func (*ConfigInstance) ApplyOracle

func (c *ConfigInstance) ApplyOracle(ctx context.Context, glue ApplyGlue) (*ApplyOracle, tfdiags.Diagnostics)

ApplyOracle creates an ApplyOracle object that can be used to support an "apply" operation that's driven by another part of the system.

While in the planning phase the evaluator is the primary driver and the planning engine just responds to callbacks, the apply phase has an inverted structure where the apply engine drives execution and just calls into the evaluator to obtain supporting information as needed.

The object returned by this function is therefore passive until asked a question through one of its methods, but asking a question is likely to cause various other evaluation work to be performed in order to gather the data needed to answer the question. The apply phase only evaluates parts of the configuration needed to perform the planned actions, because we assume that everything else was already evaluated and validated during the planning phase.

func (*ConfigInstance) BuildPlanningOracle added in v0.34.0

func (c *ConfigInstance) BuildPlanningOracle(ctx context.Context, glue PlanGlue) (*PlanningOracle, context.Context, tfdiags.Diagnostics)

DrivePlanning uses this configuration instance to drive forward a planning process being executed by another part of the system.

The caller must provide a function that builds a PlanGlue implementation that should typically somehow incorporate the given PlanningOracle. The PlanningOracle object is not yet valid during the buildGlue function but is guaranteed to be valid before any methods are called on the PlanGlue object that it returns.

This function deals only with the configuration-driven portion of the process where the planning engine learns which resource instances are currently declared in the configuration. The caller will need to compare the set of desired resource instances with the set of resource instances tracked in the prior state and then presumably generate additional planned actions to destroy any instances that are currently tracked but no longer configured.

func (*ConfigInstance) EvalContext

func (c *ConfigInstance) EvalContext() *EvalContext

EvalContext returns the EvalContext that the ConfigInstance would use to interact with its surrounding environment.

This is exposed so that other systems that do work alongside the ConfigInstance work, such as implementations of PlanGlue, can guarantee that they are interacting with the environment in a consistent way.

func (*ConfigInstance) ProviderRequirements

Fetches all of the provider requirments referred to by a given configuration tree

func (*ConfigInstance) StaticCheck

func (c *ConfigInstance) StaticCheck(ctx context.Context) tfdiags.Diagnostics

StaticCheck performs a CheckAll, but using static glue (no providers or state)

func (*ConfigInstance) Validate

Validate checks whether the configuration instance is valid when called with the previously-provided input variables and dependencies.

Returns at least one error diagnostic if the configuration call is not valid.

This is exposed for use by "validation-only" callers like the "tofu validate" command, but does NOT need to be called before other methods like [ConfigInstance.DrivePlanning] because equivalent checks occur within those operations.

type ConfiguredResourceInstanceObjectMeta

type ConfiguredResourceInstanceObjectMeta = evalglue.ConfiguredResourceInstanceObjectMeta

ConfiguredResourceInstanceObjectMeta represents the subset of metadata about a resource instance object that comes from some module instance in the configuration configuration, based on configuration arguments that could potentially vary between language editions.

It's up to the specific language edition implementation to decide how to populate an object of this type. Some fields will be based on per-resource or per-resource-instance configuration elements shared across multiple objects, but at this level of abstraction those decisions are already made and we must not assume anything is necessarily shared by objects belonging to the same resource or resource instance.

Note that this is NOT what you should use directly in the planning or applying engines as the full metadata for a resource instance object. Instead, a set of these contained inside ModuleConfiguredResourceInstanceObjectMeta wrappers describing the information from different module instances should be combined with information taken from the prior state (in a way that's outside the scope of this package) to determine the full effective metadata for an object.

The design of this type is biased towards the needs of the "managed" resource mode since that represents our primary functionality and the most complicated set of available metadata features. Nonetheless we do still use this type for other resource modes and just leave the irrelevant fields unpopulated for objects of those modes, as described in the comments on each field.

type DependenciesRequired

type DependenciesRequired struct {
}

DependenciesRequired is the result of FindDependencies, describing the dependencies that would need to be available to successfully work with a configuration instance built from the given root module and input values.

func FindDependencies

func FindDependencies(
	ctx context.Context,
	rootModuleSource *addrs.ModuleSource,
	inputValues map[addrs.InputVariable]exprs.Valuer,
	glue FindDependenciesGlue,
) (*DependenciesRequired, tfdiags.Diagnostics)

FindDependencies evaluates the called configuration in a special limited mode that aims only to learn which external module packages and providers this instance of the configuration depends on.

This uses a very limited evaluation context where no providers are available at all (because our goal is to find out which we need!) and where the caller must be prepared to fetch remote module packages and load modules from them during the process, through the provided FindDependenciesGlue implementation.

type DesiredResourceInstance

type DesiredResourceInstance struct {
	// ForkCheckNested is choudoufu fork port (#2414): remove when upstream
	// #4058 and #4740 land. It is true for a data resource declared inside a
	// check block, whose read errors are warnings and which is read again
	// during the apply, as in the default runtime.
	ForkCheckNested bool
	// ForkHasConditions is choudoufu fork port (#2414), likewise: true for a
	// data resource with a precondition or postcondition, whose read waits
	// for any change pending on a resource it depends on, as in the default
	// runtime, since that change may be what makes the condition pass.
	ForkHasConditions bool

	// Addr is the absolute address of the resource instance, suitable for
	// correlation with resource instances in the prior state and (during the
	// apply phase) in the plan.
	//
	// For objects that represent placeholders for zero or more instances whose
	// instance expansion is not yet known,
	// [addrs.AbsResourceInstance.IsPlaceholder] returns true.
	//
	// Nothing about resource instance addresses should be exposed to providers
	// through the provider protocol, because exactly how we track resource
	// instances between rounds is a detail we want to be able to change later
	// without breaking existing providers. In particular, when populating a
	// resource type name in a request to a provider you should request the
	// metadata for the resource instance object and use its ResourceType field
	// instead of using the resource type from from this address field.
	Addr addrs.AbsResourceInstance

	// ConfigVal is an object-typed value representing the configuration, which
	// has already been validated against the schema for the corresponding
	// resource type.
	//
	// This will contain unknown values if the configuration for this resource
	// instance is derived from the results of other resource instances which
	// have pending actions in this same plan.
	ConfigVal cty.Value

	// RequiredResourceInstances are the addresses of zero or more resource
	// instances that must exist and must be fully converged before the
	// final plan for this resource instance could be calculated.
	//
	// These addresses can potentially contain unknown instance keys if the
	// configuration for this resource instance was derived from placeholders
	// for upstream resource instances that had unknown keys in their own
	// addresses.
	RequiredResourceInstances addrs.Set[addrs.AbsResourceInstance]

	// IgnoreChangesPaths are paths for which the module author requested
	// that we "ignore changes".
	//
	// To "ignore changes" means to disregard what is configured for anything
	// under a matching path in ConfigVal and to instead treat the corresponding
	// value from the prior state as the effective desired state. This is
	// meaningful only when planning in-place updates to an object that is
	// already tracked in the prior state; it should be ignored when planning
	// to create or delete the object associated with a resource instance.
	//
	// Index steps within the path can potentially have unknown keys if the
	// decision about what to ignore is based on a value that won't be known
	// until the apply phase.
	//
	// This is meaningful only for resource modes that support the "update"
	// change action, and so is always empty for other modes.
	IgnoreChangesPaths []cty.Path

	// ReplaceTriggeredBy describes zero ore more attribute prefixes within
	// other resource instances for which the planning engine should force
	// replacement of this resource instance if any value beneath one of
	// the nominated paths has a change already planned for the current
	// plan/apply round.
	//
	// Index steps within the paths and instance keys within the resource
	// instance addresses can both potentially have unknown keys if the
	// decision about what to refer to is based on a value that won't be known
	// until the apply phase.
	//
	// This is meaningful only for resource modes that support the "update"
	// change action, and so is always false for other modes.
	//
	// Any resource instance mentioned in this collection will always also
	// appear in RequiredResourceInstances.
	ReplaceTriggeredBy []ResourceInstanceAttributePath
}

DesiredResourceInstance describes a resource instance that is part of the desired state (i.e. declared in the configuration).

In situations where unknown values mean that we cannot yet determine exactly which instances exist for a given resource an object of this type can potentially instead represent a placeholder for zero or more instances of the same resource, in which case we can still produce a "speculative" planned new state but will not be able to actually apply changes to those resource instances until a subsequent plan/apply round. DesiredResourceInstance.IsPlaceholder returns true for these placeholder objects.

Prior state resource instances are not represented in this package at all. The plan and apply mechanisms implemented elsewhere are responsible for comparing desired resource instances with prior state resource instances to determine what actions are needed, if any.

func (*DesiredResourceInstance) IsPlaceholder

func (ri *DesiredResourceInstance) IsPlaceholder() bool

IsPlaceholder returns true if this object is acting as a placeholder for zero or more resource instances whose full expansion is not yet known.

In that case the other fields of DesiredResourceInstance describe characteristics that all of those instances would have in common, so that it's hopefully still possible to perform some speculative planning and transfer partial results downstream to other resource instances so we can present as complete as possible an overview of how the system is likely to be configured after subsequent plan/apply rounds once everything is fully converged.

This is not the only reason why a particular resource instance might need to have its actions deferred to a future plan/apply round. Refer to the documentation for other fields of DesiredResourceInstance for some other situations where this is true. The planning engine might also have additional reasons for deferring particular resource instances that are outside the scope of the configuration.

type EvalContext

type EvalContext = evalglue.EvalContext

type ExternalModules

type ExternalModules = evalglue.ExternalModules

func ModulesForTesting

func ModulesForTesting(modules map[addrs.ModuleSourceLocal]*configs.Module) ExternalModules

type FindDependenciesGlue

type FindDependenciesGlue any

type ImportStatement added in v0.34.0

type ImportStatement = evalglue.ImportStatement

type ModuleConfiguredResourceInstanceObjectMeta added in v0.34.0

type ModuleConfiguredResourceInstanceObjectMeta struct {
	// ModuleInstance is the address of the module that provided this specific
	// metadata, which is important for interpreting certain information inside
	// which could be module-instance-relative.
	//
	// For example, "moved" statements are described relative to the module
	// where they are declared, and so they need to be "absolutized" using
	// [addrs.MoveEndpointInModule.InModuleInstance] when we
	// finally assemble the merged effective metadata for the resource instance
	// based on the statements across all modules.
	ModuleInstance addrs.ModuleInstance
	*ConfiguredResourceInstanceObjectMeta
}

ModuleConfiguredResourceInstanceObjectMeta describes the relationship between a ConfiguredResourceInstanceObjectMeta object and the module instance that produced it.

The module instance where the object is declared and all of its ancestors each get to contribute their own ConfiguredResourceInstanceObjectMeta describing whatever is declared about the object in that module, and then eventually all of the individual declarations, along with similar information derived from the prior state, is merged together to produce a single object describing the overall effective metadata for the resource instance.

type PlanGlue

type PlanGlue interface {
	// Creates planned action(s) for the given resource instance and return
	// the planned new state that would result from those actions.
	//
	// This is called only for resource instances currently declared in the
	// configuration. The planning engine must deal with planning actions
	// for "orphaned" resource instances (those which are only present in
	// prior state) separately as each of the "Plan*Orphans" methods are
	// called to report what exists in the desired state.
	PlanDesiredResourceInstance(ctx context.Context, inst *DesiredResourceInstance) (cty.Value, tfdiags.Diagnostics)
}

PlanGlue is used with [DrivePlanning] to allow the evaluation system to communicate with the planning engine that called it.

Methods of this type can be called concurrently with themselves and with each other, and so implementations must use suitable synchronization to avoid data races between calls.

type PlanningOracle

type PlanningOracle struct {
	// contains filtered or unexported fields
}

A PlanningOracle provides information from the configuration that is needed by the planning engine to help orchestrate the planning process.

func (*PlanningOracle) CheckAll added in v0.34.0

func (*PlanningOracle) CheckTarget added in v0.34.0

func (o *PlanningOracle) CheckTarget(ctx context.Context, target addrs.Targetable)

func (*PlanningOracle) Close

func (*PlanningOracle) CollectImports added in v0.34.0

func (o *PlanningOracle) CollectImports(ctx context.Context) []*ImportStatement

CollectImports returns all import statements in the configuration. Currently it only checks the root module as import statements are not allowed in modules. This will need to be re-written to use ModuleInstances deep if we ever decide to add support for it.

func (*PlanningOracle) DetectImplicitMoveForAddress added in v0.34.0

func (o *PlanningOracle) DetectImplicitMoveForAddress(ctx context.Context, addr addrs.AbsResourceInstance) *addrs.AbsResourceInstance

DetectImplicitMoveForAddress spiders the configuration, attempting to determine if there is an implicit move that could be found given the supplied state address.

func (*PlanningOracle) ForkInRunModule added in v0.34.0

ForkInRunModule evaluates the outputs of the module instance addr and plans every resource instance under it, returning the outputs object and the addresses of those instances. A module instance that does not exist returns cty.NilVal. Diagnostics are not returned: the evaluator reports them from its own pass over the configuration.

func (*PlanningOracle) PlanningResult added in v0.34.0

func (o *PlanningOracle) PlanningResult(ctx context.Context) *PlanningResult

func (*PlanningOracle) ProviderInstance

ProviderInstanceConfig returns a value representing the configuration to use when configuring the provider instance with the given address.

The result might contain unknown values, but those should still typically be sent to the provider so that it can decide how to deal with them. Some providers just immediately fail in that case, but others are able to work in a partially-configured mode where some resource types are plannable while others need to be deferred to a later plan/apply round.

If the requested provider instance does not exist in the configuration at all then this will return nil. That should not occur for any provider instance address reported by this package as part of the same planning phase, but could occur in subsequent work done by the planning phase to deal with resource instances that are in prior state but no longer in desired state, if their provider instances have also been removed from the desired state at the same time. In that case the planning phase must report that the "orphaned" resource instance cannot be planned for deletion unless its provider instance is re-added to the configuration.

func (*PlanningOracle) ResourceInstanceObjectMeta added in v0.34.0

ResourceInstanceObjectMeta collects all of the metadata provided by modules on the path to the specified resource instance object, ordered by module instance depth with the shallowest module instance first.

This is intended to be called by methods of the PlanGlue implementation provided by the planning engine during the planning process, when handling both desired and non-desired objects, whereas only desired objects have a full DesiredResourceInstance. Callers should typically combine the result of this method with information from the prior state to produce the full metadata for the requested object.

Callers must be careful about how they ask this question if a particular resource instance is changing its address as part of the current plan, such as with "moved" blocks. The config-based metadata for a desired object is always associated with the new address that the object would be bound to after the apply phase completes, whereas the associated state-based metadata would belong instead to the old address.

This method returns a zero-length slice if there is absolutely no configuration-based metadata for the given object, in which case the caller will need to rely on the state exclusively for deciding the metadata. Callers can assume that a "desired" resource instance object will always have at least one result representing the leaf module instance that the object directly belongs to.

If errors in the configuration prevent producing the full metadata for the resource instance then the result may include unknown values as placeholders for the erroneous configuration values, marked with exprs.EvalError to allow callers to distinguish them from truly-unknown values whenever that's needed. In particular, callers should avoid reporting any new errors based on unknown values that are marked in that way, because that'll tend to cause the same problem to be reported more than once in different ways and that's confusing.

type PlanningResult

type PlanningResult struct {
	// RootModuleOutputs is the object representing the planned output values
	// from the root module.
	//
	// This will contain unknown value placeholders for any part of an output
	// value which depends on the result of an action that won't be taken
	// until the apply phase.
	RootModuleOutputs RootModuleOutputs
}

PlanningResult is the return value of [ConfigInstance.DrivePlanning], describing the top-level outcomes of the planning process.

type Providers

type Providers = evalglue.Providers

func ProvidersForTesting

func ProvidersForTesting(schemas map[addrs.Provider]*providers.GetProviderSchemaResponse) Providers

type ProvidersSchema

type ProvidersSchema = evalglue.ProvidersSchema

type Provisioners

type Provisioners = evalglue.Provisioners

type ProvisionersSchema

type ProvisionersSchema = evalglue.ProvisionersSchema

func ProvisionersForTesting

func ProvisionersForTesting(schemas map[string]*configschema.Block) ProvisionersSchema

type ResourceInstanceAttributePath

type ResourceInstanceAttributePath = configgraph.ResourceInstanceAttributePath

FIXME: Don't directly expose a configgraph type here, since that package is supposed to be an implementation detail of tofu2024 and any other future HCL-based language editions.

type ResourceInstanceObjectProvider added in v0.34.0

type ResourceInstanceObjectProvider = evalglue.ResourceInstanceObjectProvider

ResourceInstanceObjectProvider is a container for the provider-related information in ConfiguredResourceInstanceObjectMeta.

type ResourceProvisioner

type ResourceProvisioner = evalglue.ResourceProvisioner

ResourceProvisioner represents a single provisioner configured for a resource instance object.

type RootModuleOutput added in v0.34.0

type RootModuleOutput struct {
	Value                cty.Value
	ResourceDependencies addrs.Set[addrs.AbsResourceInstance]
}

type RootModuleOutputs

type RootModuleOutputs map[string]RootModuleOutput

RootModuleOutputs represent the information needed by both the planning and apply engines to correctly process root module outputs

func CollectRootModuleOutputs

func CollectRootModuleOutputs(ctx context.Context, rootModuleInstance evalglue.CompiledModuleInstance) RootModuleOutputs

type UncompiledModule

type UncompiledModule = evalglue.UncompiledModule

func PrepareTofu2024Module

func PrepareTofu2024Module(sourceAddr addrs.ModuleSource, mod *configs.Module) UncompiledModule

PrepareTofu2024Module wraps a module targeting the current HCL-based edition of the OpenTofu language (which is called "tofu2024" in this set of packages) in an UncompiledModule value to return from an ExternalModules implementation.

Directories

Path Synopsis
internal
tofu2024
Package tofu2024 contains the "module compiler" implementation for the first edition of the OpenTofu language, established with OpenTofu v1.6 in 2024 and then gradually evolved in backward-compatible ways.
Package tofu2024 contains the "module compiler" implementation for the first edition of the OpenTofu language, established with OpenTofu v1.6 in 2024 and then gradually evolved in backward-compatible ways.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL