From 11bd07abb297ef93e52a332d8ec9a0094e76181e Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 29 May 2018 16:37:32 -0700 Subject: [PATCH] core: Have WritePlan be explicit that it's non-functional right now This is temporarily broken until we implement the new plan file format, since terraform.Plan is no longer serializable with gob. Rather than have an error that seems like it needs immediate fixing, we'll be explicit about it in the error message and focus our efforts on other test failures for now, and return to implement the new file format later. --- terraform/plan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/plan.go b/terraform/plan.go index 6b635e6dd..fb3ef6195 100644 --- a/terraform/plan.go +++ b/terraform/plan.go @@ -242,6 +242,8 @@ func ReadPlan(src io.Reader) (*Plan, error) { // WritePlan writes a plan somewhere in a binary format. func WritePlan(d *Plan, dst io.Writer) error { + return fmt.Errorf("plan serialization is temporarily disabled, pending implementation of the new file format") + // Write the magic bytes so we can determine the file format later n, err := dst.Write([]byte(planFormatMagic)) if err != nil {