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

Replace customerrors with go-multierror #764

Merged
merged 7 commits into from
Jan 22, 2021

Conversation

urohit011
Copy link
Contributor

This pull request resolves #751 by replacing the use of customerrors with go-multierror

Link to test result gist -> gist

The test github.com/gruntwork-io/terratest/test/terraform_scp_example_test.go fails, but it does not look like it's due to the change in this commit.

Copy link
Contributor

@infraredgirl infraredgirl left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, the code looks good!

I left a couple of suggestions inline:

  • Using new is more readable when creating a new multierror
  • We should always return .ErrorOrNil() as that takes care to return nil in the case there were no errors

modules/aws/ec2-files.go Outdated Show resolved Hide resolved
modules/aws/ec2-files.go Outdated Show resolved Hide resolved
modules/packer/packer.go Outdated Show resolved Hide resolved
modules/packer/packer.go Outdated Show resolved Hide resolved
modules/ssh/ssh.go Outdated Show resolved Hide resolved
modules/ssh/ssh.go Outdated Show resolved Hide resolved
urohit011 and others added 6 commits January 18, 2021 22:35
Co-authored-by: Ana Krivokapić <[email protected]>
Co-authored-by: Ana Krivokapić <[email protected]>
Co-authored-by: Ana Krivokapić <[email protected]>
Co-authored-by: Ana Krivokapić <[email protected]>
Co-authored-by: Ana Krivokapić <[email protected]>
Co-authored-by: Ana Krivokapić <[email protected]>
@urohit011
Copy link
Contributor Author

Thanks for the suggestions @infraredgirl, I will keep them in mind.

@infraredgirl
Copy link
Contributor

Thanks for the updates, Rohit! The code LGTM now, but tests seem to be failing. This could be due to some unrelated test instability we have hit lately. There's a PR open that should stabilize tests a bit, I'll wait for that to merge before merging this. Thanks for your patience!

@urohit011
Copy link
Contributor Author

Thanks for the update, Ana. Sorry I saw your msg late.

@robmorgan
Copy link
Contributor

FYI - #765 is now merged.

@infraredgirl
Copy link
Contributor

Thanks Rob! I re-ran the tests and the only failure is in helm tests which were not affected by this change.

I'll go ahead and merge - thanks again for the contribution @urohit011 !

@infraredgirl infraredgirl merged commit d000797 into gruntwork-io:master Jan 22, 2021
@urohit011
Copy link
Contributor Author

Thank you Ana and Rob :)

helayoty pushed a commit to helayoty/terratest that referenced this pull request Jan 26, 2021
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.

Replace multierror implementation with go-multierror
3 participants