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

gateway: quick fix for mockgen Make targets #2189

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

stevendanna
Copy link
Contributor

This fixes a chicken-and-egg problem that we hit when trying to add a
service since the package the code-generator reflects on also requires
that the generated code is already correctly generated.

Note the change in clients_mock.go is likely from the fact that this
file was hand-edited in the past.

I've also removed a Make target which simply didn't work because the
relevant files didn't exist.

Further, I noticed that running make produces files in

mock_compliance_events/

which are not currently in source control. I haven't added them here
as as I wasn't sure if this was intentional.

In short, mock generation is a big mess still and needs to be cleaned
up, but at least now make works again.

Signed-off-by: Steven Danna [email protected]
Signed-off-by: Vivek Singh [email protected]

This fixes a chicken-and-egg problem that we hit when trying to add a
service since the package the code-generator reflects on also requires
that the generated code is already correctly generated.

Note the change in clients_mock.go is likely from the fact that this
file was hand-edited in the past.

I've also removed a Make target which simply didn't work because the
relevant files didn't exist.

Further, I noticed that running `make` produces files in

    mock_compliance_events/

which are not currently in source control. I haven't added them here
as as I wasn't sure if this was intentional.

In short, mock generation is a big mess still and needs to be cleaned
up, but at least now `make` works again.

Signed-off-by: Steven Danna <[email protected]>
Signed-off-by: Vivek Singh <[email protected]>
@stevendanna stevendanna merged commit d1a0654 into master Nov 13, 2019
@stevendanna stevendanna deleted the ssd/quick-fix-for-gateway-mock branch November 30, 2020 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants