terraform/internal/stacks/stackconfig
James Pogran 2c075b9f8e
Add component registry source resolution support to Terraform Stacks (#37888)
* Add component registry source resolution support to Terraform Stacks

This change implements the missing component source resolution case in the stack configuration loader, enabling Terraform Stacks to properly handle component registry sources from HCP Terraform and other component registries.

The implementation mirrors the existing module registry resolution workflow, where component sources are first resolved to their versioned form using the source bundle's component metadata, then converted to final source addresses that can be used to locate the actual component code. This completes the integration between the terraform-registry-address component parsing capabilities and the go-slug sourcebundle component resolution APIs.

* chore: bump go-slug to v0.18.1

* fix: add case for component final source type

* chore: rm space

* chore: sync module deps

* chore: update testdata with separate bundle

* fix: manifest file json obj with trailing comma

* Add changelog entry to 1.14

---------

Co-authored-by: Michael Yocca <michael.yocca@hashicorp.com>
2025-12-10 09:16:03 -05:00
..
parser migrate command for terraform stacks (#36482) 2025-03-19 10:39:50 +01:00
stackconfigtypes stacks: Some code consistency cleanups in preparation for first merge 2023-11-15 12:38:57 -08:00
testdata Add component registry source resolution support to Terraform Stacks (#37888) 2025-12-10 09:16:03 -05:00
typeexpr stackconfig: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
component.go migrate command for terraform stacks (#36482) 2025-03-19 10:39:50 +01:00
config.go Add component registry source resolution support to Terraform Stacks (#37888) 2025-12-10 09:16:03 -05:00
config_test.go Add component registry source resolution support to Terraform Stacks (#37888) 2025-12-10 09:16:03 -05:00
declarations.go stacks: refactor plan, state, and removed tracking with tree structures for efficient lookups (#36850) 2025-04-16 14:05:51 +02:00
diagnostics.go stackconfig: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
doc.go stacks: rename .tfstack files to .tfcomponent (#37013) 2025-05-15 08:33:13 +02:00
embedded_stack.go stacks: update removed blocks to allow targeting of embedded stacks (#36814) 2025-04-04 15:01:37 +02:00
file.go stacks: remove support for deprecated .tfstack extension (#37617) 2025-09-16 13:20:07 +02:00
input_variable.go stackconfig: Variables and outputs can be sensitive/ephemeral 2024-06-17 08:34:46 -07:00
local_value.go stackconfig: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
output_value.go stackconfig: Variables and outputs can be sensitive/ephemeral 2024-06-17 08:34:46 -07:00
provider_config.go stackconfig: Add HashiCorp copyright comments 2023-11-15 12:38:55 -08:00
provider_requirements.go stacks: Don't require built-in providers to be listed under required providers. (#37234) 2025-06-18 17:02:27 +02:00
removed.go stacks: update removed blocks to allow targeting of embedded stacks (#36814) 2025-04-04 15:01:37 +02:00
stack.go stacks: remove support for deprecated .tfstack extension (#37617) 2025-09-16 13:20:07 +02:00