Files
James Humphries c5fd93482a Fix crash in unmarkDeepWithPathsDeprecated (#3105)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
Signed-off-by: James Humphries <James@james-humphries.co.uk>
Co-authored-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
2025-08-06 15:40:19 +01:00

20 lines
529 B
HCL

module "test" {
source = "./module"
}
# This creates a SINGLE value with MULTIPLE deprecated marks at different paths
# Each field gets its own PathValueMark with ONLY a deprecation mark
# This pattern triggers the slice modification bug in unmarkDeepWithPathsDeprecated
# https://github.com/opentofu/opentofu/issues/3104
locals {
all_deprecated = {
a = module.test.out1
b = module.test.out2
c = module.test.out3
}
}
# Force evaluation by using in an output
output "trigger" {
value = local.all_deprecated
}