-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
modules/opa/download_policy.go
Outdated
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
modules/opa/download_policy.go
Outdated
return "", err | ||
} | ||
policyDirCache.Store(baseDir, tempDir) | ||
return filepath.Join(tempDir, subDir), nil | ||
} | ||
|
||
// detectGetter find suitable getter.Getter by rulePath. |
There was a problem hiding this comment.
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
?
…ub.com/aws/aws-sdk-go reference
e80656b
to
03b2bd3
Compare
There was a problem hiding this 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.
Description
Related to #1432.
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Upgrade github.com/hashicorp/go-getter to v2.
Migration Guide