From 9bc7777bb2814435bfc5a52b90368496a4802990 Mon Sep 17 00:00:00 2001 From: "hashicorp-tsccr[bot]" Date: Mon, 19 Aug 2024 06:07:27 +0000 Subject: [PATCH 1/2] Result of tsccr-helper -log-level=info gha update -latest . --- .github/workflows/ci-go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index 746fe222..e818bc82 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -88,7 +88,7 @@ jobs: - run: go mod download - run: go test -coverprofile=coverage.out ./... - run: go tool cover -html=coverage.out -o coverage.html - - uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5 + - uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 with: name: go-${{ matrix.go-version }}-coverage path: coverage.html From 9b9ad4729b8fe0730dd1bc3a342964314dc6d57d Mon Sep 17 00:00:00 2001 From: Selena Goods Date: Tue, 20 Aug 2024 13:43:44 -0400 Subject: [PATCH 2/2] Resolve linter errors and warnings --- .golangci.yml | 2 +- internal/privatestate/data.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a62a6274..429044d2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -22,7 +22,7 @@ linters: - unconvert - unparam - unused - - vet + - govet run: # Prevent false positive timeouts in CI diff --git a/internal/privatestate/data.go b/internal/privatestate/data.go index 3e858026..5493a9d9 100644 --- a/internal/privatestate/data.go +++ b/internal/privatestate/data.go @@ -72,9 +72,9 @@ func (d *Data) Bytes(ctx context.Context) ([]byte, diag.Diagnostics) { if !json.Valid(v) { diags.AddError( "Error Encoding Private State", - fmt.Sprintf("An error was encountered when validating private state value."+ + "An error was encountered when validating private state value."+ fmt.Sprintf("The value associated with key %q is is not valid JSON.\n\n", k)+ - "This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer."), + "This is always a problem with Terraform or terraform-plugin-framework. Please report this to the provider developer.", ) tflog.Error(ctx, "error encoding private state: invalid JSON value", map[string]interface{}{"key": k, "value": v})