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

internal/testing: Migrate types package to testtypes to reduce import collisions #773

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

bflad
Copy link
Member

@bflad bflad commented Jun 14, 2023

Closes #724

This was a mechanical migration consisting of the following steps:

  • git mv internal/testing/types internal/testing/testtypes
  • In internal/testing/testtypes, replace package types with package testtypes
  • Replace testtypes "github.com/hashicorp/terraform-plugin-framework/internal/testing/types" with "github.com/hashicorp/terraform-plugin-framework/internal/testing/testtypes"

Other than removing the import aliasing, this now enables the Go language server to automatically suggest and import when typing testtypes..

… collisions

Reference: #724

This was a mechanical migration consisting of the following steps:

- `git mv internal/testing/types internal/testing/testtypes`
- In `internal/testing/testtypes`, replace `package types` with `package testtypes`
- Replace `testtypes "github.com/hashicorp/terraform-plugin-framework/internal/testing/types"` with `"github.com/hashicorp/terraform-plugin-framework/internal/testing/testtypes"`

Other than removing the import aliasing, this now enables the Go language server to automatically suggest and import when typing `testtypes.`.
@bflad bflad added the tech-debt Issues tracking technical debt that we're carrying. label Jun 14, 2023
@bflad bflad added this to the v1.4.0 milestone Jun 14, 2023
@bflad bflad requested a review from a team as a code owner June 14, 2023 19:11
Copy link
Member

@austinvalle austinvalle left a comment

Choose a reason for hiding this comment

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

Nice! 🧹

@bflad bflad merged commit b219ea4 into main Jun 14, 2023
20 checks passed
@bflad bflad deleted the bflad/testtypes branch June 14, 2023 21:09
@bflad bflad modified the milestones: v1.4.0, v1.3.2 Jun 28, 2023
@github-actions
Copy link

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 Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tech-debt Issues tracking technical debt that we're carrying.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate internal/testing/types package to internal/testtypes package
2 participants