hashicorp / hashicorp/terraform-plugin-codegen-framework

Consider Generated Package Naming of Thing Then Type

Open
#110 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
57
Forks
29
Avg merge
2d 13h
Merged PRs (30d)
1

Description

### Use Cases or Problem Statement

Super minor, but came up during the templating RFC review that a common naming convention for resource/data source files is `{THING}_(data_source|resource).go` which makes it easier to find correlated resources and data sources for the same real world resource. Currently the generator creates schema/data model packages as `resource_{THING}`, etc.

### Proposal

While still in technical preview, consider flipping the naming convention for the generated packages.

### Additional Information

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.