From 68a78aa8815cf82ddee53ea8ca581257aeaf6323 Mon Sep 17 00:00:00 2001 From: NodyHub Date: Tue, 7 Jan 2025 10:18:36 +0100 Subject: [PATCH 1/3] upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3 --- CHANGELOG.md | 4 ++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2490c133a..96579c9b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * Add BETA support for Linux arm64 agents, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users @natalie-todd [#1022](https://github.com/hashicorp/go-tfe/pull/1022) * Adds support to delete all tag bindings on either a project or workspace by @sebasslash [#1023](https://github.com/hashicorp/go-tfe/pull/1023) +## Bug Fixes + +* Update dependency `github.com/hashicorp/go-slug` `v0.16.0` => `v0.16.3` to integrate latest changes. + # v1.71.0 ## Enhancements diff --git a/go.mod b/go.mod index 22ad6cda3..2cf4359ab 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/go-querystring v1.1.0 github.com/hashicorp/go-cleanhttp v0.5.2 github.com/hashicorp/go-retryablehttp v0.7.7 - github.com/hashicorp/go-slug v0.16.0 + github.com/hashicorp/go-slug v0.16.3 github.com/hashicorp/go-uuid v1.0.3 github.com/hashicorp/go-version v1.7.0 github.com/hashicorp/jsonapi v1.3.1 diff --git a/go.sum b/go.sum index 1293b8565..c5f2fd3f1 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= -github.com/hashicorp/go-slug v0.16.0 h1:S/ko9fms1gf6305ktJNUKGxFmscZ+yWvAtsas0SYUyA= -github.com/hashicorp/go-slug v0.16.0/go.mod h1:THWVTAXwJEinbsp4/bBRcmbaO5EYNLTqxbG4tZ3gCYQ= +github.com/hashicorp/go-slug v0.16.3 h1:pe0PMwz2UWN1168QksdW/d7u057itB2gY568iF0E2Ns= +github.com/hashicorp/go-slug v0.16.3/go.mod h1:THWVTAXwJEinbsp4/bBRcmbaO5EYNLTqxbG4tZ3gCYQ= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= From 106dfd21bb47247cc1b6b0fe64d3a10b21fdd728 Mon Sep 17 00:00:00 2001 From: NodyHub Date: Tue, 7 Jan 2025 16:03:02 +0100 Subject: [PATCH 2/3] remove deprecated feature --- configuration_version_integration_test.go | 1 - example_test.go | 10 ++++------ examples/configuration_versions/main.go | 5 ++--- examples/registry_modules/main.go | 5 ++--- registry_module_integration_test.go | 1 - 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/configuration_version_integration_test.go b/configuration_version_integration_test.go index ea517c640..2ded10a93 100644 --- a/configuration_version_integration_test.go +++ b/configuration_version_integration_test.go @@ -311,7 +311,6 @@ func TestConfigurationVersionsUploadTarGzip(t *testing.T) { packer, err := slug.NewPacker( slug.DereferenceSymlinks(), slug.ApplyTerraformIgnore(), - slug.AllowSymlinkTarget("/target/symlink/path/foo"), ) require.NoError(t, err) diff --git a/example_test.go b/example_test.go index 863e65c4d..9c49bd241 100644 --- a/example_test.go +++ b/example_test.go @@ -90,9 +90,8 @@ func ExampleConfigurationVersions_UploadTarGzip() { } packer, err := slug.NewPacker( - slug.DereferenceSymlinks(), // dereferences symlinks - slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore - slug.AllowSymlinkTarget("/some/path"), // allow certain symlink target paths + slug.DereferenceSymlinks(), // dereferences symlinks + slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore ) if err != nil { log.Fatal(err) @@ -131,9 +130,8 @@ func ExampleRegistryModules_UploadTarGzip() { } packer, err := slug.NewPacker( - slug.DereferenceSymlinks(), // dereferences symlinks - slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore - slug.AllowSymlinkTarget("/some/path"), // allow certain symlink target paths + slug.DereferenceSymlinks(), // dereferences symlinks + slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore ) if err != nil { log.Fatal(err) diff --git a/examples/configuration_versions/main.go b/examples/configuration_versions/main.go index 3aa3d08c9..65ba9731f 100644 --- a/examples/configuration_versions/main.go +++ b/examples/configuration_versions/main.go @@ -22,9 +22,8 @@ func main() { } packer, err := slug.NewPacker( - slug.DereferenceSymlinks(), // dereferences symlinks - slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore - slug.AllowSymlinkTarget("/some/path"), // allow certain symlink target paths + slug.DereferenceSymlinks(), // dereferences symlinks + slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore ) if err != nil { log.Fatal(err) diff --git a/examples/registry_modules/main.go b/examples/registry_modules/main.go index 2965aba31..bc424ec6b 100644 --- a/examples/registry_modules/main.go +++ b/examples/registry_modules/main.go @@ -22,9 +22,8 @@ func main() { } packer, err := slug.NewPacker( - slug.DereferenceSymlinks(), // dereferences symlinks - slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore - slug.AllowSymlinkTarget("/some/path"), // allow certain symlink target paths + slug.DereferenceSymlinks(), // dereferences symlinks + slug.ApplyTerraformIgnore(), // ignores paths specified in .terraformignore ) if err != nil { log.Fatal(err) diff --git a/registry_module_integration_test.go b/registry_module_integration_test.go index 805921fb0..35292604b 100644 --- a/registry_module_integration_test.go +++ b/registry_module_integration_test.go @@ -1763,7 +1763,6 @@ func TestRegistryModulesUploadTarGzip(t *testing.T) { packer, err := slug.NewPacker( slug.DereferenceSymlinks(), slug.ApplyTerraformIgnore(), - slug.AllowSymlinkTarget("/target/symlink/path/foo"), ) require.NoError(t, err) From 6baf42d649c28f401a317af352ecfd6ea087ca13 Mon Sep 17 00:00:00 2001 From: NodyHub Date: Thu, 9 Jan 2025 09:57:31 +0100 Subject: [PATCH 3/3] adjusted targeted release in the changelog --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d1ceec61..c007bb5b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * Add support for team notification configurations @notchairmk [#1016](https://github.com/hashicorp/go-tfe/pull/1016) +## Bug Fixes + +* Update dependency `github.com/hashicorp/go-slug` `v0.16.0` => `v0.16.3` to integrate latest changes. + # v1.72.0 ## Enhancements @@ -14,10 +18,6 @@ * Add BETA support for Linux arm64 agents, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users @natalie-todd [#1022](https://github.com/hashicorp/go-tfe/pull/1022) * Adds support to delete all tag bindings on either a project or workspace by @sebasslash [#1023](https://github.com/hashicorp/go-tfe/pull/1023) -## Bug Fixes - -* Update dependency `github.com/hashicorp/go-slug` `v0.16.0` => `v0.16.3` to integrate latest changes. - # v1.71.0 ## Enhancements