From dca4e3004e43cf2b30e5e4c2a32e00b2ca917c8c Mon Sep 17 00:00:00 2001 From: Esanim <17294241+Esanim@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:37:21 +0100 Subject: [PATCH] fix: add support for google v5 provider --- test/terramate_google.tm.hcl | 2 +- test/unit-complete/_generated_google.tf | 2 +- test/unit-disabled/_generated_google.tf | 2 +- test/unit-minimal/config.tm.hcl | 4 ++++ versions.tf | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 test/unit-minimal/config.tm.hcl diff --git a/test/terramate_google.tm.hcl b/test/terramate_google.tm.hcl index e1821e3..2a64e0d 100644 --- a/test/terramate_google.tm.hcl +++ b/test/terramate_google.tm.hcl @@ -1,5 +1,5 @@ globals { - minimum_provider_version = "4.0" + minimum_provider_version = "5.0" provider_version_constraint = "~> ${global.minimum_provider_version}" stack_basename = tm_reverse(tm_split("/", terramate.path))[0] diff --git a/test/unit-complete/_generated_google.tf b/test/unit-complete/_generated_google.tf index 6c07bfe..f8f0bfe 100644 --- a/test/unit-complete/_generated_google.tf +++ b/test/unit-complete/_generated_google.tf @@ -23,7 +23,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = "~> 4.0" + version = "~> 5.0" } random = { source = "hashicorp/random" diff --git a/test/unit-disabled/_generated_google.tf b/test/unit-disabled/_generated_google.tf index e030866..d9c007a 100644 --- a/test/unit-disabled/_generated_google.tf +++ b/test/unit-disabled/_generated_google.tf @@ -23,7 +23,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = "4.0" + version = "5.0" } random = { source = "hashicorp/random" diff --git a/test/unit-minimal/config.tm.hcl b/test/unit-minimal/config.tm.hcl new file mode 100644 index 0000000..187b5d6 --- /dev/null +++ b/test/unit-minimal/config.tm.hcl @@ -0,0 +1,4 @@ +globals { + minimum_provider_version = "4.0" + provider_version_constraint = "~> ${global.minimum_provider_version}" +} diff --git a/versions.tf b/versions.tf index 1934a8b..752022e 100644 --- a/versions.tf +++ b/versions.tf @@ -8,7 +8,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = ">= 4.0, < 5.0" + version = ">= 4.0, <6" } } }