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

provider: Development and testing updates for Go 1.16 upgrade, proper impi handling in tools Go module, and update golangci-lint@v1.37.1 #17795

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Feb 24, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Reference: #17743
Reference: #17685
Reference: https://golang.org/doc/go1.16

This change request bundles a few related items around the Go 1.16 upgrade and changes to the tools Go module:

  • Removes GO111MODULE=on environment variable handling in GitHub Actions and GNUmakefile as that is now the default behavior in Go 1.16
  • Adds missing impi into tools/main.go so it shows as needing to be versioned in the tools Go module
  • Upgrades golangci-lint in tools since dependabot has been having trouble with this change for some reason
  • Runs go mod tidy in tools with Go 1.16, which is the majority of the automatic updates in tools/go.sum

Now with Go 1.16, we can use go install PACKAGE@VERSION if we no longer want to use the tools Go module strategy, however that will also remove dependabot pinging us on tooling updates.

Output from acceptance testing: N/A (CI)

… impi handling in tools Go module, and update golangci-lint@v1.37.1

Reference: #17743
Reference: #17685
Reference: https://golang.org/doc/go1.16

This change request bundles a few related items around the Go 1.16 upgrade and changes to the `tools` Go module:

* Removes `GO111MODULE=on` environment variable handling in GitHub Actions and GNUmakefile as that is now the default behavior in Go 1.16
* Adds missing `impi` into `tools/main.go` so it shows as needing to be versions
* Upgrades `golangci-lint` in `tools` since dependabot has been having trouble with this change for some reason
* Runs `go mod tidy` in `tools` with Go 1.16, which is the majority of the automatic updates in `tools/go.sum`

Now with Go 1.16, we can use `go install PACKAGE@VERSION` if we no longer want to use the `tools` Go module strategy, however that will also remove dependabot pinging us on tooling updates.
@bflad bflad requested a review from a team as a code owner February 24, 2021 17:08
@ghost ghost added size/L Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 24, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks good! 🎉

Ran some spot tests (acc test, make tools, etc.) and all runs as expected.

@bflad bflad merged commit 9395e0d into main Feb 25, 2021
@bflad bflad deleted the v-tools-updates branch February 25, 2021 15:00
@github-actions github-actions bot added this to the v3.30.0 milestone Feb 25, 2021
github-actions bot pushed a commit that referenced this pull request Feb 25, 2021
@ghost
Copy link

ghost commented Feb 26, 2021

This has been released in version 3.30.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 27, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants