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

make mock-gen failed #28

Closed
bap2pecs opened this issue Sep 27, 2024 · 3 comments
Closed

make mock-gen failed #28

bap2pecs opened this issue Sep 27, 2024 · 3 comments
Assignees

Comments

@bap2pecs
Copy link
Collaborator

$ make mock-gen                                                    [12:02:00]
go install go.uber.org/mock/mockgen@latest
mockgen -source=db/interface.go -package mocks -destination ./testutil/mocks/db_mock.go
make: *** [mock-gen] Killed: 9

we should also add this to CI to

  • run it
  • check if there is any diff generated
@parketh
Copy link
Collaborator

parketh commented Oct 3, 2024

i tried with latest main branch and it works on my end

image

maybe reinstalling mockgen / cleaning cache helps? Killed: 9 seems to be a Mac Silicon issue, some relevant discussion here: https://apple.stackexchange.com/questions/258623/how-to-fix-killed-9-error-in-mac-os

@bap2pecs
Copy link
Collaborator Author

this is not easy to fix. submitted issue: uber-go/mock#211

also tried to change back to the old archived repo go install github.com/golang/mock/mockgen@latest but test will fail

so I will just leave it for now

@bap2pecs
Copy link
Collaborator Author

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

No branches or pull requests

2 participants