diff --git a/internal/stacks/stackplan/from_proto.go b/internal/stacks/stackplan/from_proto.go index 448121260e..bd2b10a9e9 100644 --- a/internal/stacks/stackplan/from_proto.go +++ b/internal/stacks/stackplan/from_proto.go @@ -32,7 +32,7 @@ func LoadFromProto(msgs []*anypb.Any) (*Plan, error) { switch msg := msg.(type) { case *tfstackdata1.PlanHeader: - wantVersion := version.String() + wantVersion := version.SemVer.String() gotVersion := msg.TerraformVersion if gotVersion != wantVersion { return nil, fmt.Errorf("plan was created by Terraform %s, but this is Terraform %s", gotVersion, wantVersion)