From c170d73c625e86e2537fdc3f06b3f930c3acd0d3 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Thu, 26 Oct 2023 11:05:27 -0400 Subject: [PATCH] Update go-cty fixer replace directive to github.com/nywilken/go-cty v1.13.3 --- cmd/packer-sdc/internal/fix/gocty.go | 2 +- cmd/packer-sdc/internal/fix/gocty_test.go | 1 - cmd/packer-sdc/internal/fix/testdata/fixed/basic/go.mod | 2 +- cmd/packer-sdc/internal/fix/testdata/fixed/many-replace/go.mod | 2 +- cmd/packer-sdc/internal/fix/testdata/unfixed/basic/fixed.go.mod | 2 +- .../internal/fix/testdata/unfixed/many-replace/fixed.go.mod | 2 +- .../internal/fix/testdata/unfixed/version/fixed.go.mod | 2 +- cmd/packer-sdc/internal/fix/testdata/unfixed/version/go.mod | 2 +- 8 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmd/packer-sdc/internal/fix/gocty.go b/cmd/packer-sdc/internal/fix/gocty.go index d12c269de..ebb243d0b 100644 --- a/cmd/packer-sdc/internal/fix/gocty.go +++ b/cmd/packer-sdc/internal/fix/gocty.go @@ -15,7 +15,7 @@ const ( sdkPath string = "github.com/hashicorp/packer-plugin-sdk" oldPath string = "github.com/zclconf/go-cty" newPath string = "github.com/nywilken/go-cty" - newVersion string = "1.12.1" + newVersion string = "1.13.3" modFilename string = "go.mod" ) diff --git a/cmd/packer-sdc/internal/fix/gocty_test.go b/cmd/packer-sdc/internal/fix/gocty_test.go index 132898edb..5ec0c1cf1 100644 --- a/cmd/packer-sdc/internal/fix/gocty_test.go +++ b/cmd/packer-sdc/internal/fix/gocty_test.go @@ -101,7 +101,6 @@ func TestFixGoCty_Unfixed(t *testing.T) { }, { name: "out of date fix", - versionStr: "1.13.1", fixtureDir: filepath.Join("testdata", "unfixed", "version"), }, } diff --git a/cmd/packer-sdc/internal/fix/testdata/fixed/basic/go.mod b/cmd/packer-sdc/internal/fix/testdata/fixed/basic/go.mod index 4247f0444..d88f7979e 100644 --- a/cmd/packer-sdc/internal/fix/testdata/fixed/basic/go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/fixed/basic/go.mod @@ -8,4 +8,4 @@ require ( github.com/zclconf/go-cty v1.10.0 ) -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.12.1 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 diff --git a/cmd/packer-sdc/internal/fix/testdata/fixed/many-replace/go.mod b/cmd/packer-sdc/internal/fix/testdata/fixed/many-replace/go.mod index b011417ab..00dc509ec 100644 --- a/cmd/packer-sdc/internal/fix/testdata/fixed/many-replace/go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/fixed/many-replace/go.mod @@ -10,4 +10,4 @@ require ( replace github.com/hashicorp/packer-plugin-sdk => github.com/example/packer-plugin-sdk v0.5.0 -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.12.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 diff --git a/cmd/packer-sdc/internal/fix/testdata/unfixed/basic/fixed.go.mod b/cmd/packer-sdc/internal/fix/testdata/unfixed/basic/fixed.go.mod index da456395d..9554e74f6 100644 --- a/cmd/packer-sdc/internal/fix/testdata/unfixed/basic/fixed.go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/unfixed/basic/fixed.go.mod @@ -8,4 +8,4 @@ require ( github.com/zclconf/go-cty v1.10.0 ) -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.12.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 diff --git a/cmd/packer-sdc/internal/fix/testdata/unfixed/many-replace/fixed.go.mod b/cmd/packer-sdc/internal/fix/testdata/unfixed/many-replace/fixed.go.mod index b011417ab..00dc509ec 100644 --- a/cmd/packer-sdc/internal/fix/testdata/unfixed/many-replace/fixed.go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/unfixed/many-replace/fixed.go.mod @@ -10,4 +10,4 @@ require ( replace github.com/hashicorp/packer-plugin-sdk => github.com/example/packer-plugin-sdk v0.5.0 -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.12.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 diff --git a/cmd/packer-sdc/internal/fix/testdata/unfixed/version/fixed.go.mod b/cmd/packer-sdc/internal/fix/testdata/unfixed/version/fixed.go.mod index 90da23380..9554e74f6 100644 --- a/cmd/packer-sdc/internal/fix/testdata/unfixed/version/fixed.go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/unfixed/version/fixed.go.mod @@ -8,4 +8,4 @@ require ( github.com/zclconf/go-cty v1.10.0 ) -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.3 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 diff --git a/cmd/packer-sdc/internal/fix/testdata/unfixed/version/go.mod b/cmd/packer-sdc/internal/fix/testdata/unfixed/version/go.mod index 90da23380..da456395d 100644 --- a/cmd/packer-sdc/internal/fix/testdata/unfixed/version/go.mod +++ b/cmd/packer-sdc/internal/fix/testdata/unfixed/version/go.mod @@ -8,4 +8,4 @@ require ( github.com/zclconf/go-cty v1.10.0 ) -replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.13.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187 +replace github.com/zclconf/go-cty => github.com/nywilken/go-cty v1.12.1 // added by packer-sdc fix as noted in github.com/hashicorp/packer-plugin-sdk/issues/187