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

Error on M1 Mac when generating mocks with confluent-kafka-go dependency #176

Open
lazorfuzz opened this issue Jun 14, 2022 · 1 comment

Comments

@lazorfuzz
Copy link

Hi, I'm using an M1 mac to generate mocks for a kafka producer which depends on the confluent-kafka-go package. When attempting to generate, moq exits with the below error.

go generate -tags dynamic ./...
couldn't load source package: /workspace/mercury/internal/kafka/producers/invalidation_producer.go:94:66: cannot use kafka.PartitionAny (constant unknown with invalid type) as int32 value in struct literal

On non-m1 macs, I can successfully generate the mocks without the -tags dynamic build tag.

@matryer
Copy link
Owner

matryer commented Oct 1, 2022

I guess here the issue is that the kafka.PartitionAny type isn't tagged with the dynamic build tag - so it's not included? Is that worth ruling out?

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