Closed kmcquade closed 2 years ago
I tried changing the provider version to 0.1.21 and it still failed
I believe it's an HCL bug that we need to work around:
resource "spacelift_stack" "this" {
branch = "master"
name = "Repro for 340"
repository = "empty"
github_enterprise {
namespace = "" # <- this line causes the crash
}
}
HCL doesn't see the difference between an empty string and a "null"
, and treats the entire block as nil
rather than map[string]interface{}{"github_enterprise": ""}
as I would expect. That breaks the interface conversion.
I'm getting a puzzling crash message. See below.
Some context:
provider "spacelift" {}
)