From 5e6e89f79028e9a25e79c29de67e45c0e03f282b Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Tue, 14 Jul 2026 20:22:48 +0200 Subject: [PATCH 1/3] chore: upgrade to appwrite sdk-for-go v6 Bump github.com/appwrite/sdk-for-go from v5 to v6.0.0 across all services and the provider, and bump the Go toolchain accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) --- go.mod | 4 ++-- go.sum | 4 ++-- internal/common/helpers.go | 4 ++-- internal/provider/provider.go | 4 ++-- internal/services/backup/resource.go | 8 ++++---- internal/services/bucket/data_source.go | 2 +- internal/services/bucket/resource.go | 8 ++++---- internal/services/column/resource.go | 6 +++--- internal/services/database/data_source.go | 2 +- internal/services/database/resource.go | 6 +++--- internal/services/file/resource.go | 10 +++++----- internal/services/function/data_source.go | 2 +- internal/services/function/deployment_resource.go | 8 ++++---- internal/services/function/resource.go | 8 ++++---- internal/services/function/variable_resource.go | 8 ++++---- internal/services/index/resource.go | 6 +++--- internal/services/provider/resource.go | 8 ++++---- internal/services/row/resource.go | 8 ++++---- internal/services/site/data_source.go | 2 +- internal/services/site/deployment_resource.go | 8 ++++---- internal/services/site/resource.go | 8 ++++---- internal/services/site/variable_resource.go | 8 ++++---- internal/services/subscriber/resource.go | 4 ++-- internal/services/table/resource.go | 6 +++--- internal/services/team/data_source.go | 2 +- internal/services/team/resource.go | 6 +++--- internal/services/topic/data_source.go | 2 +- internal/services/topic/resource.go | 6 +++--- internal/services/user/data_source.go | 2 +- internal/services/user/resource.go | 8 ++++---- internal/services/webhook/data_source.go | 2 +- internal/services/webhook/resource.go | 8 ++++---- 32 files changed, 89 insertions(+), 89 deletions(-) diff --git a/go.mod b/go.mod index 15281e2..5866c4f 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/appwrite/terraform-provider-appwrite -go 1.25.0 +go 1.26.5 require ( - github.com/appwrite/sdk-for-go/v5 v5.1.0 + github.com/appwrite/sdk-for-go/v6 v6.0.0 github.com/hashicorp/terraform-plugin-docs v0.24.0 github.com/hashicorp/terraform-plugin-framework v1.19.0 github.com/hashicorp/terraform-plugin-framework-validators v0.19.0 diff --git a/go.sum b/go.sum index 7db729e..587545c 100644 --- a/go.sum +++ b/go.sum @@ -19,8 +19,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= -github.com/appwrite/sdk-for-go/v5 v5.1.0 h1:RpLB6VnvpBBNki02+/zvRcNZidIGA+YBTqnl1B6ekLo= -github.com/appwrite/sdk-for-go/v5 v5.1.0/go.mod h1:eUT/90T7AIrpts1eUoN+YdY+yhxZyS13D/bb89pjN/g= +github.com/appwrite/sdk-for-go/v6 v6.0.0 h1:npGhGJNhvWx8DN7OdxTap5g22wknVSTUHAkpdjz4Yak= +github.com/appwrite/sdk-for-go/v6 v6.0.0/go.mod h1:5oTdAwNsSNCY0FxwUzs1J0XAgxue2veWSdVcCSsKg8I= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= diff --git a/internal/common/helpers.go b/internal/common/helpers.go index ae2fcc3..89637ec 100644 --- a/internal/common/helpers.go +++ b/internal/common/helpers.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 0e36e3a..841b5d6 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -4,8 +4,8 @@ import ( "context" "os" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/client" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" diff --git a/internal/services/backup/resource.go b/internal/services/backup/resource.go index b657671..7bc6afe 100644 --- a/internal/services/backup/resource.go +++ b/internal/services/backup/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/backups" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/backups" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/bucket/data_source.go b/internal/services/bucket/data_source.go index c40eb70..82d11da 100644 --- a/internal/services/bucket/data_source.go +++ b/internal/services/bucket/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/bucket/resource.go b/internal/services/bucket/resource.go index 2b3e375..de15e30 100644 --- a/internal/services/bucket/resource.go +++ b/internal/services/bucket/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/storage" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/storage" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/column/resource.go b/internal/services/column/resource.go index 66d86f3..c910783 100644 --- a/internal/services/column/resource.go +++ b/internal/services/column/resource.go @@ -5,9 +5,9 @@ import ( "encoding/json" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/tablesdb" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/database/data_source.go b/internal/services/database/data_source.go index d3a6839..450f733 100644 --- a/internal/services/database/data_source.go +++ b/internal/services/database/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/database/resource.go b/internal/services/database/resource.go index 681e779..563aa90 100644 --- a/internal/services/database/resource.go +++ b/internal/services/database/resource.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/tablesdb" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/file/resource.go b/internal/services/file/resource.go index 72f0767..552a5ab 100644 --- a/internal/services/file/resource.go +++ b/internal/services/file/resource.go @@ -6,11 +6,11 @@ import ( "os" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - appwritefile "github.com/appwrite/sdk-for-go/v5/file" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/storage" + "github.com/appwrite/sdk-for-go/v6/appwrite" + appwritefile "github.com/appwrite/sdk-for-go/v6/file" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/storage" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/function/data_source.go b/internal/services/function/data_source.go index cfd8c90..ca18091 100644 --- a/internal/services/function/data_source.go +++ b/internal/services/function/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/function/deployment_resource.go b/internal/services/function/deployment_resource.go index e014426..123e44b 100644 --- a/internal/services/function/deployment_resource.go +++ b/internal/services/function/deployment_resource.go @@ -6,10 +6,10 @@ import ( "path/filepath" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - appwritefile "github.com/appwrite/sdk-for-go/v5/file" - "github.com/appwrite/sdk-for-go/v5/functions" - "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v6/appwrite" + appwritefile "github.com/appwrite/sdk-for-go/v6/file" + "github.com/appwrite/sdk-for-go/v6/functions" + "github.com/appwrite/sdk-for-go/v6/models" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/function/resource.go b/internal/services/function/resource.go index 20eba36..2b22961 100644 --- a/internal/services/function/resource.go +++ b/internal/services/function/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/functions" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/functions" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/diag" diff --git a/internal/services/function/variable_resource.go b/internal/services/function/variable_resource.go index 3a0baf2..3f9fb65 100644 --- a/internal/services/function/variable_resource.go +++ b/internal/services/function/variable_resource.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/functions" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/functions" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/index/resource.go b/internal/services/index/resource.go index faf1321..6d9ce76 100644 --- a/internal/services/index/resource.go +++ b/internal/services/index/resource.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/tablesdb" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/provider/resource.go b/internal/services/provider/resource.go index 4332989..0b304e2 100644 --- a/internal/services/provider/resource.go +++ b/internal/services/provider/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/messaging" - "github.com/appwrite/sdk-for-go/v5/models" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/messaging" + "github.com/appwrite/sdk-for-go/v6/models" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/row/resource.go b/internal/services/row/resource.go index 44835e2..00f4cf3 100644 --- a/internal/services/row/resource.go +++ b/internal/services/row/resource.go @@ -6,10 +6,10 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/tablesdb" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/site/data_source.go b/internal/services/site/data_source.go index b7df87d..552b2aa 100644 --- a/internal/services/site/data_source.go +++ b/internal/services/site/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/site/deployment_resource.go b/internal/services/site/deployment_resource.go index 971891f..a50fa99 100644 --- a/internal/services/site/deployment_resource.go +++ b/internal/services/site/deployment_resource.go @@ -6,10 +6,10 @@ import ( "path/filepath" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - appwritefile "github.com/appwrite/sdk-for-go/v5/file" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/sites" + "github.com/appwrite/sdk-for-go/v6/appwrite" + appwritefile "github.com/appwrite/sdk-for-go/v6/file" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/sites" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/site/resource.go b/internal/services/site/resource.go index 6a129ca..ba95267 100644 --- a/internal/services/site/resource.go +++ b/internal/services/site/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/sites" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/sites" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/site/variable_resource.go b/internal/services/site/variable_resource.go index 31a3b87..1956fb8 100644 --- a/internal/services/site/variable_resource.go +++ b/internal/services/site/variable_resource.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/sites" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/sites" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/subscriber/resource.go b/internal/services/subscriber/resource.go index 631d041..556cf01 100644 --- a/internal/services/subscriber/resource.go +++ b/internal/services/subscriber/resource.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/table/resource.go b/internal/services/table/resource.go index 73fba4b..4f4ba27 100644 --- a/internal/services/table/resource.go +++ b/internal/services/table/resource.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/tablesdb" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/tablesdb" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/team/data_source.go b/internal/services/team/data_source.go index 0133047..0b3bc0f 100644 --- a/internal/services/team/data_source.go +++ b/internal/services/team/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/team/resource.go b/internal/services/team/resource.go index 50fa64e..d39b128 100644 --- a/internal/services/team/resource.go +++ b/internal/services/team/resource.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/teams" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/teams" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/topic/data_source.go b/internal/services/topic/data_source.go index 28ecfa8..b75228c 100644 --- a/internal/services/topic/data_source.go +++ b/internal/services/topic/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/topic/resource.go b/internal/services/topic/resource.go index 51f3eab..02e4788 100644 --- a/internal/services/topic/resource.go +++ b/internal/services/topic/resource.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/messaging" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/messaging" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/services/user/data_source.go b/internal/services/user/data_source.go index 24958f3..073abd3 100644 --- a/internal/services/user/data_source.go +++ b/internal/services/user/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/user/resource.go b/internal/services/user/resource.go index f49c939..9209bdd 100644 --- a/internal/services/user/resource.go +++ b/internal/services/user/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/users" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/users" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" diff --git a/internal/services/webhook/data_source.go b/internal/services/webhook/data_source.go index 668d2bc..7de386d 100644 --- a/internal/services/webhook/data_source.go +++ b/internal/services/webhook/data_source.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" + "github.com/appwrite/sdk-for-go/v6/appwrite" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" diff --git a/internal/services/webhook/resource.go b/internal/services/webhook/resource.go index 7e914a7..3d165df 100644 --- a/internal/services/webhook/resource.go +++ b/internal/services/webhook/resource.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/appwrite/sdk-for-go/v5/appwrite" - "github.com/appwrite/sdk-for-go/v5/id" - "github.com/appwrite/sdk-for-go/v5/models" - "github.com/appwrite/sdk-for-go/v5/webhooks" + "github.com/appwrite/sdk-for-go/v6/appwrite" + "github.com/appwrite/sdk-for-go/v6/id" + "github.com/appwrite/sdk-for-go/v6/models" + "github.com/appwrite/sdk-for-go/v6/webhooks" "github.com/appwrite/terraform-provider-appwrite/internal/common" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/path" From 5b5fed09835154fc9d2a16d061e51184498bc1a6 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Tue, 14 Jul 2026 20:50:19 +0200 Subject: [PATCH 2/3] fix(lint): silence StringColumn deprecation warnings CreateStringColumn/UpdateStringColumn are deprecated in SDK v6 in favor of TextColumn, but TextColumn has no size option. Keep StringColumn to honor `size` and suppress SA1019. Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/services/column/resource.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/services/column/resource.go b/internal/services/column/resource.go index c910783..19ef067 100644 --- a/internal/services/column/resource.go +++ b/internal/services/column/resource.go @@ -246,7 +246,8 @@ func (r *columnResource) Create(ctx context.Context, req resource.CreateRequest, if !plan.Encrypt.IsNull() && !plan.Encrypt.IsUnknown() { opts = append(opts, tablesdbClient.WithCreateStringColumnEncrypt(plan.Encrypt.ValueBool())) } - col, e := tablesdbClient.CreateStringColumn(databaseID, tableID, key, int(plan.Size.ValueInt64()), required, opts...) + // ponytail: StringColumn is deprecated in SDK v6 in favor of TextColumn, but TextColumn has no size option; keep String to honor `size`. Migrate if the API gains text sizing. + col, e := tablesdbClient.CreateStringColumn(databaseID, tableID, key, int(plan.Size.ValueInt64()), required, opts...) //nolint:staticcheck err = e if col != nil { responseJSON, _ = json.Marshal(col) @@ -590,7 +591,8 @@ func (r *columnResource) Update(ctx context.Context, req resource.UpdateRequest, if !plan.Size.IsNull() { opts = append(opts, tablesdbClient.WithUpdateStringColumnSize(int(plan.Size.ValueInt64()))) } - col, e := tablesdbClient.UpdateStringColumn(databaseID, tableID, key, required, defaultStr, opts...) + // ponytail: see CreateStringColumn note — keep String to honor `size` until TextColumn supports it. + col, e := tablesdbClient.UpdateStringColumn(databaseID, tableID, key, required, defaultStr, opts...) //nolint:staticcheck err = e if col != nil { responseJSON, _ = json.Marshal(col) From 1095855bc652c006765fef442ada843d9037de30 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Tue, 14 Jul 2026 20:51:19 +0200 Subject: [PATCH 3/3] chore: drop ponytail prefix from lint comments Co-Authored-By: Claude Opus 4.8 (1M context) --- internal/services/column/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/column/resource.go b/internal/services/column/resource.go index 19ef067..d041bed 100644 --- a/internal/services/column/resource.go +++ b/internal/services/column/resource.go @@ -246,7 +246,7 @@ func (r *columnResource) Create(ctx context.Context, req resource.CreateRequest, if !plan.Encrypt.IsNull() && !plan.Encrypt.IsUnknown() { opts = append(opts, tablesdbClient.WithCreateStringColumnEncrypt(plan.Encrypt.ValueBool())) } - // ponytail: StringColumn is deprecated in SDK v6 in favor of TextColumn, but TextColumn has no size option; keep String to honor `size`. Migrate if the API gains text sizing. + // StringColumn is deprecated in SDK v6 in favor of TextColumn, but TextColumn has no size option; keep String to honor `size`. Migrate if the API gains text sizing. col, e := tablesdbClient.CreateStringColumn(databaseID, tableID, key, int(plan.Size.ValueInt64()), required, opts...) //nolint:staticcheck err = e if col != nil { @@ -591,7 +591,7 @@ func (r *columnResource) Update(ctx context.Context, req resource.UpdateRequest, if !plan.Size.IsNull() { opts = append(opts, tablesdbClient.WithUpdateStringColumnSize(int(plan.Size.ValueInt64()))) } - // ponytail: see CreateStringColumn note — keep String to honor `size` until TextColumn supports it. + // see CreateStringColumn note — keep String to honor `size` until TextColumn supports it. col, e := tablesdbClient.UpdateStringColumn(databaseID, tableID, key, required, defaultStr, opts...) //nolint:staticcheck err = e if col != nil {