diff --git a/pkg/vendored/generate.go b/pkg/vendored/generate.go index 83f109a4f..38cdc0a29 100644 --- a/pkg/vendored/generate.go +++ b/pkg/vendored/generate.go @@ -309,9 +309,13 @@ func vendorOpenTOFU(version string) { transforms: transforms, }, { - src: "internal/addrs/checkable.go", - dest: "addrs/checkable.go", - transforms: transforms, + src: "internal/addrs/checkable.go", + dest: "addrs/checkable.go", + transforms: append(transforms, func(s string) string { + code := `fmt.Sprintf("unsupported CheckableKind %s", kind)` + repl := `fmt.Sprintf("unsupported CheckableKind %v", kind)` + return strings.ReplaceAll(s, code, repl) + }), }, { src: "internal/addrs/check.go", diff --git a/pkg/vendored/opentofu/addrs/checkable.go b/pkg/vendored/opentofu/addrs/checkable.go index 54085ef7d..a24b106fd 100755 --- a/pkg/vendored/opentofu/addrs/checkable.go +++ b/pkg/vendored/opentofu/addrs/checkable.go @@ -192,6 +192,6 @@ func ParseCheckableStr(kind CheckableKind, src string) (Checkable, tfdiags.Diagn return InputVariable{Name: name}.Absolute(path), diags default: - panic(fmt.Sprintf("unsupported CheckableKind %s", kind)) + panic(fmt.Sprintf("unsupported CheckableKind %v", kind)) } }