From a21f89c8919528ad5554d6627b187f39549481b8 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Wed, 12 Mar 2025 05:39:13 +0000 Subject: [PATCH 1/2] Go 1.24 --- README.md | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d642d3d..3c58e87 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # TFLint Ruleset for Terraform Language -[![Build Status](https://github.com/terraform-linters/tflint-ruleset-terraform/workflows/build/badge.svg?branch=main)](https://github.com/terraform-linters/tflint-ruleset-terraform/actions) +[![Build Status](https://github.com/terraform-linters/tflint-ruleset-terraform/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/terraform-linters/tflint-ruleset-terraform/actions) [![GitHub release](https://img.shields.io/github/release/terraform-linters/tflint-ruleset-terraform.svg)](https://github.com/terraform-linters/tflint-ruleset-terraform/releases/latest) [![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-blue.svg)](LICENSE) @@ -10,7 +10,7 @@ This ruleset focus on possible errors and best practices about Terraform Languag ## Requirements - TFLint v0.42+ -- Go v1.22 +- Go v1.24 ## Installation diff --git a/go.mod b/go.mod index b7fcfbe..fe352d5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/terraform-linters/tflint-ruleset-terraform -go 1.23 +go 1.24.1 require ( github.com/Masterminds/semver/v3 v3.3.0 From 7d9e2ec70d1ec5fddc8277c42e6e0ed4412898f1 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Wed, 12 Mar 2025 05:43:38 +0000 Subject: [PATCH 2/2] Fix non-constant format string in call to Errorf --- terraform/ruleset_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/ruleset_test.go b/terraform/ruleset_test.go index 9ea4a19..61d708b 100644 --- a/terraform/ruleset_test.go +++ b/terraform/ruleset_test.go @@ -267,7 +267,7 @@ func TestApplyConfig(t *testing.T) { } if diff := cmp.Diff(got, test.want); diff != "" { - t.Errorf(diff) + t.Error(diff) } }) }