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

[1/3] [DXCDT-102] Prepare to upgrade terraform-plugin-sdk to v2 #121

Merged
merged 3 commits into from
Apr 5, 2022

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Apr 4, 2022

Description

In this PR we're doing a couple of quick pre-steps in order for us to be able to upgrade to terraform-plugin-sdk@v2.

Terraform Upgrade Guide: https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide

Suggestions from https://www.terraform.io/plugin/sdkv2/guides/v2-upgrade-guide#removal-of-helper-hashcode-package as the hashcode pkg was removed.

Checklist

Note: Checklist required to be completed before a PR is considered to be reviewable.

Auth0 Code of Conduct

Auth0 General Contribution Guidelines

Changes include test coverage?

  • Yes
  • Not needed

Does the description provide the correct amount of context?

  • Yes, the description provides enough context for the reviewer to understand what these changes accomplish

Have you updated the documentation?

  • Yes, I've updated the appropriate docs
  • Not needed

Is this code ready for production?

  • Yes, all code changes are intentional and no debugging calls are left over

@sergiught sergiught self-assigned this Apr 4, 2022

require (
github.com/auth0/go-auth0 v0.6.1
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/terraform-plugin-sdk v1.16.1
)

require (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please check https://go.dev/doc/go1.17#go-command for more details as to why these indirect deps are surfaced within the go.mod instead of keeping them only in the go.sum.

Copy link
Contributor

Choose a reason for hiding this comment

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

Question (non-blocking): So if I read this correctly, since we're moving forward with Go 1.18 and presumably most of our dependencies do or will, we can expect this separate require block to always contain these indirect dependencies. Or posed another way, this isn't going away, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct, it's here to stay with us indefinitely.

}
return 0
}
}

func stringToHashCode(s string) int {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -1,36 +0,0 @@
package debug
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Never used anywhere, so we're cleaning it up so we don't need to upgrade this to sdk v2 as well.

@sergiught sergiught changed the title DXCDT-102 Prepare to upgrade terraform-plugin-sdk to v2 [1/3] DXCDT-102 Prepare to upgrade terraform-plugin-sdk to v2 Apr 4, 2022
@sergiught sergiught marked this pull request as ready for review April 4, 2022 11:00
@sergiught sergiught requested a review from a team as a code owner April 4, 2022 11:00
@sergiught sergiught changed the title [1/3] DXCDT-102 Prepare to upgrade terraform-plugin-sdk to v2 [1/3] DXCDT-102: Prepare to upgrade terraform-plugin-sdk to v2 Apr 4, 2022
@sergiught sergiught changed the title [1/3] DXCDT-102: Prepare to upgrade terraform-plugin-sdk to v2 [1/3] [DXCDT-102] Prepare to upgrade terraform-plugin-sdk to v2 Apr 4, 2022
@sergiught sergiught merged commit a3255c4 into main Apr 5, 2022
@sergiught sergiught deleted the patch/DXCDT-102-pre-sdk-v2 branch April 5, 2022 06:06
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.

2 participants