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

Consider Generated Package Naming of Thing Then Type #110

Open
1 task done
bflad opened this issue Jan 10, 2024 · 1 comment
Open
1 task done

Consider Generated Package Naming of Thing Then Type #110

bflad opened this issue Jan 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bflad
Copy link
Contributor

bflad commented Jan 10, 2024

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

  • I agree to follow this project's Code of Conduct
@bflad bflad added the enhancement New feature or request label Jan 10, 2024
@remyleone
Copy link

It would be really useful to completely override this, we got an existing folder/package structure with existing packages (k8s and k8s_test for instance). We would like to push the generated files with the right package name directly to the existing folder that already got packages defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants