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

deps: Remove github.com/hashicorp/go-multierror direct dependency #1247

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

bflad
Copy link
Member

@bflad bflad commented Sep 6, 2023

Reference: hashicorp/terraform-plugin-testing#99

Similar to terraform-plugin-testing, now that this Go module is Go 1.20+, we can use native errors.Join() functionality for joining multiple errors.

To fully remove the dependency, will need to update some other dependencies as well, e.g.

# github.com/hashicorp/go-multierror
github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugintest
github.com/hashicorp/hc-install
github.com/hashicorp/go-multierror

Reference: hashicorp/terraform-plugin-testing#99

Similar to terraform-plugin-testing, now that this Go module is Go 1.20+, we can use native `errors.Join()` functionality for joining multiple errors.

To fully remove the dependency, will need to update some other dependencies as well, e.g.

```
# github.com/hashicorp/go-multierror
github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugintest
github.com/hashicorp/hc-install
github.com/hashicorp/go-multierror
```
@bflad bflad added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Sep 6, 2023
@bflad bflad requested a review from a team as a code owner September 6, 2023 17:28
@bflad bflad added this to the v2.30.0 milestone Sep 6, 2023
@bflad bflad merged commit af738e0 into main Sep 6, 2023
6 checks passed
@bflad bflad deleted the bflad/remove-go-multierror branch September 6, 2023 19:21
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants