Skip to content

Commit

Permalink
Merge pull request #1025 from hashicorp/nodyhub/update-go-slug
Browse files Browse the repository at this point in the history
upgraded github.com/hashicorp/go-slug v0.16.0 => v0.16.3
  • Loading branch information
NodyHub authored Jan 10, 2025
2 parents 2b26a23 + 6baf42d commit a17a867
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion configuration_version_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 4 additions & 6 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions examples/configuration_versions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions examples/registry_modules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
1 change: 0 additions & 1 deletion registry_module_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a17a867

Please sign in to comment.