Skip to content

Commit 6c8e0ff

Browse files
Add deprecated warning for TF CLI < 1.0 (#1875)
* Add warning for TF CLI < 1.0 * gofumpt * Update linode/framework_provider_config.go Co-authored-by: Lena Garber <[email protected]> --------- Co-authored-by: Lena Garber <[email protected]>
1 parent fe91c71 commit 6c8e0ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

linode/framework_provider_config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ func (fp *FrameworkProvider) Configure(
5454
return
5555
}
5656
}
57+
if strings.HasPrefix(req.TerraformVersion, "0.") {
58+
resp.Diagnostics.AddWarning(
59+
"Support for Terraform 0.x is deprecated",
60+
"Please upgrade to Terraform 1.x or later. "+
61+
"Support for Terraform 0.x will be removed in a future version of this provider.",
62+
)
63+
}
5764

5865
resp.ResourceData = &meta
5966
resp.DataSourceData = &meta

linode/objquota/datasource_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,4 @@ func TestAccDataSourceObjQuota_basic(t *testing.T) {
9595
},
9696
},
9797
})
98-
9998
}

0 commit comments

Comments
 (0)