Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade github.com/hashicorp/go-getter to v2 for remove indirect github.com/aws/aws-sdk-go reference #1477

Merged

Conversation

bozaro
Copy link
Contributor

@bozaro bozaro commented Dec 3, 2024

Description

Related to #1432.

go mod why -m github.com/aws/aws-sdk-go
# github.com/aws/aws-sdk-go
github.com/gruntwork-io/terratest/modules/opa
github.com/hashicorp/go-getter
github.com/aws/aws-sdk-go/aws

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Upgrade github.com/hashicorp/go-getter to v2.

Migration Guide

@bozaro bozaro marked this pull request as ready for review December 3, 2024 06:29
@bozaro bozaro requested a review from denis256 as a code owner December 3, 2024 06:29
return "", err
}
policyDirCache.Store(baseDir, tempDir)
return filepath.Join(tempDir, subDir), nil
}

// detectGetter find suitable getter.Getter by rulePath.
func detectGetter(rulePath string) (getter.Getter, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please create unit test for this change to make sure we can continue to validate whether this code works going forward and now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it a bit and rewrote the patch. This variant should be more straightforward.

return "", err
}
policyDirCache.Store(baseDir, tempDir)
return filepath.Join(tempDir, subDir), nil
}

// detectGetter find suitable getter.Getter by rulePath.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate what this mean? What does it mean to find suitable getter.Getter?

@bozaro bozaro force-pushed the remove-indirect-aws-sdk-go-dependency branch from e80656b to 03b2bd3 Compare December 4, 2024 07:14
Copy link
Contributor

@james03160927 james03160927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall change LGTM. The failing tests do not seem to be relevant to this change.

@james03160927 james03160927 merged commit 572df21 into gruntwork-io:main Dec 6, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants