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

Prepare to move ARM types to subpackages #3892

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

theunrepentantgeek
Copy link
Member

What this PR does / why we need it:

Moves ARM types to subpackages, subject to a deny list that maintains the status quo.

We can remove groups from the deny list gradually, allowing a step by step migration to the new structure.

Special notes for your reviewer:

Currently, unit tests fail in the internal/codegen/pipeline folder and I haven't been able to work out why.
Adding an entry to the deny list for the group person makes the problem go away, so it's definitely due to these changes.

How does this PR make you feel:
gif

@theunrepentantgeek theunrepentantgeek self-assigned this Mar 27, 2024
@matthchr
Copy link
Member

We think that the problem with some of the tests is this test-specific function:
func CreateFileDefinition(definitions ...astmodel.TypeDefinition) *astmodel.FileDefinition {

It needs to take a collection of packages, so that the codeGenContext has information about the imported packages too. Otherwise it can't find the arm types and fails.

@matthchr
Copy link
Member

I also merged + pushed, we may need to re-record the golden file tests after my changes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants