-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Open
Labels
Description
Terraform Version
> terraform version
Terraform v1.14.0-beta2
on darwin_arm64
+ provider registry.terraform.io/austinvalle/bufo v2.1.0
>
Terraform Configuration Files
terraform {
required_providers {
bufo = {
source = "austinvalle/bufo"
}
}
}
resource "terraform_data" "test" {
lifecycle {
action_trigger {
events = [after_create]
actions = [action.bufo_print.success]
}
}
}
action "bufo_print" "success" {
config {
# random colorized bufo
color = true
}
}
resource "terraform_data" "test2" {
depends_on = [action.bufo_print.success]
lifecycle {
action_trigger {
events = [after_create]
actions = [action.bufo_print.success]
}
}
}
Debug Output
2025-10-16T11:03:30.425+0200 [INFO] Terraform version: 1.14.0 beta2
2025-10-16T11:03:30.425+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.91.0
2025-10-16T11:03:30.426+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.24.0
2025-10-16T11:03:30.426+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-10-16T11:03:30.426+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.3
2025-10-16T11:03:30.426+0200 [INFO] Go runtime version: go1.25.1
2025-10-16T11:03:30.426+0200 [INFO] CLI args: []string{"terraform", "plan"}
2025-10-16T11:03:30.426+0200 [DEBUG] Attempting to open CLI config file: .fake
2025-10-16T11:03:30.426+0200 [INFO] Loading CLI configuration from .fake
2025-10-16T11:03:30.426+0200 [DEBUG] Not reading CLI config directory because config location is overridden by environment variable
2025-10-16T11:03:30.426+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2025-10-16T11:03:30.426+0200 [DEBUG] ignoring non-existing provider search directory /Users/kklimonda/.terraform.d/plugins
2025-10-16T11:03:30.426+0200 [DEBUG] ignoring non-existing provider search directory /Users/kklimonda/Library/Application Support/io.terraform/plugins
2025-10-16T11:03:30.426+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2025-10-16T11:03:30.426+0200 [INFO] CLI command args: []string{"plan"}
2025-10-16T11:03:30.444+0200 [DEBUG] checking for provisioner in "."
2025-10-16T11:03:30.444+0200 [DEBUG] checking for provisioner in "/Users/kklimonda/.local/share/mise/installs/terraform/1.14.0-beta2"
2025-10-16T11:03:30.444+0200 [INFO] backend/local: starting Plan operation
2025-10-16T11:03:30.445+0200 [DEBUG] created provider logger: level=debug
2025-10-16T11:03:30.445+0200 [INFO] provider: configuring client automatic mTLS
2025-10-16T11:03:30.452+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0 args=[".terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0"]
2025-10-16T11:03:30.457+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0 pid=14549
2025-10-16T11:03:30.457+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0
2025-10-16T11:03:30.471+0200 [INFO] provider.terraform-provider-bufo_v2.1.0: configuring server automatic mTLS: timestamp="2025-10-16T11:03:30.471+0200"
2025-10-16T11:03:30.477+0200 [DEBUG] provider: using plugin: version=6
2025-10-16T11:03:30.477+0200 [DEBUG] provider.terraform-provider-bufo_v2.1.0: plugin address: network=unix address=/var/folders/gn/ply1nqsj17b0h33xcf9gk4mr0000gp/T/plugin2971551344 timestamp="2025-10-16T11:03:30.477+0200"
2025-10-16T11:03:30.485+0200 [DEBUG] No provider meta schema returned
2025-10-16T11:03:30.489+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-10-16T11:03:30.489+0200 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0 id=14549
2025-10-16T11:03:30.489+0200 [DEBUG] provider: plugin exited
2025-10-16T11:03:30.490+0200 [DEBUG] Building and walking validate graph
2025-10-16T11:03:30.490+0200 [DEBUG] adding implicit provider configuration provider["terraform.io/builtin/terraform"], implied first by terraform_data.test2
2025-10-16T11:03:30.490+0200 [DEBUG] ProviderTransformer: "action.bufo_print.success" (*terraform.NodeValidatableAction) needs provider["registry.terraform.io/austinvalle/bufo"]
2025-10-16T11:03:30.490+0200 [DEBUG] ProviderTransformer: "terraform_data.test2" (*terraform.NodeValidatableResource) needs provider["terraform.io/builtin/terraform"]
2025-10-16T11:03:30.490+0200 [DEBUG] ProviderTransformer: "terraform_data.test" (*terraform.NodeValidatableResource) needs provider["terraform.io/builtin/terraform"]
2025-10-16T11:03:30.490+0200 [ERROR] AttachSchemaTransformer: No provider config schema available for provider["terraform.io/builtin/terraform"]
2025-10-16T11:03:30.490+0200 [DEBUG] ReferenceTransformer: "action.bufo_print.success" references: []
2025-10-16T11:03:30.490+0200 [DEBUG] ReferenceTransformer: "terraform_data.test2" references: [action.bufo_print.success]
2025-10-16T11:03:30.490+0200 [DEBUG] ReferenceTransformer: "terraform_data.test" references: []
2025-10-16T11:03:30.490+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/austinvalle/bufo\"]" references: []
2025-10-16T11:03:30.490+0200 [DEBUG] ReferenceTransformer: "provider[\"terraform.io/builtin/terraform\"]" references: []
2025-10-16T11:03:30.490+0200 [DEBUG] Starting graph walk: walkValidate
2025-10-16T11:03:30.490+0200 [DEBUG] created provider logger: level=debug
2025-10-16T11:03:30.490+0200 [INFO] provider: configuring client automatic mTLS
2025-10-16T11:03:30.493+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0 args=[".terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0"]
2025-10-16T11:03:30.494+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0 pid=14550
2025-10-16T11:03:30.494+0200 [DEBUG] provider: waiting for RPC address: plugin=.terraform/providers/registry.terraform.io/austinvalle/bufo/2.1.0/darwin_arm64/terraform-provider-bufo_v2.1.0
2025-10-16T11:03:30.503+0200 [INFO] provider.terraform-provider-bufo_v2.1.0: configuring server automatic mTLS: timestamp="2025-10-16T11:03:30.503+0200"
2025-10-16T11:03:30.509+0200 [DEBUG] provider: using plugin: version=6
2025-10-16T11:03:30.509+0200 [DEBUG] provider.terraform-provider-bufo_v2.1.0: plugin address: address=/var/folders/gn/ply1nqsj17b0h33xcf9gk4mr0000gp/T/plugin953872845 network=unix timestamp="2025-10-16T11:03:30.509+0200"
2025-10-16T11:03:30.515+0200 [ERROR] vertex "terraform_data.test2" panicked
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
Please report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version, the stack trace
shown below, and any additional information which may help replicate the issue.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
panic: runtime error: invalid memory address or nil pointer dereference
goroutine 89 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x64
github.com/hashicorp/terraform/internal/logging.PanicHandler()
github.com/hashicorp/terraform/internal/logging/panic.go:84 +0x16c
panic({0x105e50fc0?, 0x10828fcc0?})
runtime/panic.go:783 +0x120
github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1.1()
github.com/hashicorp/terraform/internal/terraform/graph.go:59 +0x30c
panic({0x105e50fc0?, 0x10828fcc0?})
runtime/panic.go:783 +0x120
github.com/hashicorp/terraform/internal/lang.(*Scope).EvalReference(0x1400057b900, 0x140006d5e30, {{0x1065315b8?, 0x108386540?}})
github.com/hashicorp/terraform/internal/lang/eval.go:221 +0xd0
github.com/hashicorp/terraform/internal/terraform.validateDependsOn({0x106559708, 0x14000902120}, {0x1400080bd10?, 0x140006f1570?, 0x0?})
github.com/hashicorp/terraform/internal/terraform/node_resource_validate.go:820 +0x2ac
github.com/hashicorp/terraform/internal/terraform.(*NodeValidatableResource).validateResource(0x140000b2628, {0x106559708, 0x14000902120})
github.com/hashicorp/terraform/internal/terraform/node_resource_validate.go:319 +0x3a4
github.com/hashicorp/terraform/internal/terraform.(*NodeValidatableResource).Execute(0x140000b2628, {0x106559708, 0x14000902120}, 0x40?)
github.com/hashicorp/terraform/internal/terraform/node_resource_validate.go:58 +0x88
github.com/hashicorp/terraform/internal/terraform.(*ContextGraphWalker).Execute(0x14000201600, {0x106559708, 0x14000902120}, {0x108ad8040, 0x140000b2628})
github.com/hashicorp/terraform/internal/terraform/graph_walk_context.go:166 +0xa0
github.com/hashicorp/terraform/internal/terraform.(*Graph).walk.func1({0x106432e80, 0x140000b2628})
github.com/hashicorp/terraform/internal/terraform/graph.go:143 +0x598
github.com/hashicorp/terraform/internal/dag.(*Walker).walkVertex(0x14000a15320, {0x106432e80, 0x140000b2628}, 0x140008ab000)
github.com/hashicorp/terraform/internal/dag/walk.go:393 +0x284
created by github.com/hashicorp/terraform/internal/dag.(*Walker).Update in goroutine 16
github.com/hashicorp/terraform/internal/dag/walk.go:316 +0xae4
Expected Behavior
I'd expect terraform to either honor the dependency, or report an error if this is not supported.
Actual Behavior
Terraform crashed when running terraform plan
Steps to Reproduce
terraform init
terraform plan
Additional Context
No response
References
No response
Generative AI / LLM assisted development?
No response