-
Notifications
You must be signed in to change notification settings - Fork 94
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
Cannot generate fakes for types that use aliased internal types #174
Comments
Related issue, where Cadence is aliasing internal interfaces: cadence-workflow/cadence-go-client#928 |
@krishicks I attempted to reproduce your issue (with |
Closing, happy to reopen if it's still an issue using >= |
This is still an issue with v6.4.1. I created a repo that shows the issue: https://github.com/krishicks/repro See https://github.com/krishicks/repro/blob/master/reprofakes/fake_my_interface.go#L8. It's an internal package, but should be "go.uber.org/cadence/workflow". |
@krishicks thanks for posting that; I now have a local reproduction, and I see the issue. I'm not certain how to fix it, because I think I took a look at |
Hello @joefitzgerald :) I bumped into this issue as well recently. My "solution" for now is a Cheers! |
👋 I wanted to use counterfeiter to generate a fake that includes a Cadence
workflow.Context
, which is a type alias tointernal.Context
: https://github.com/uber-go/cadence-client/blob/0.9.1/workflow/context.go#L33Creating a fake for the type that references
workflow.Context
results in the internal package being imported in the fake, which results in a compile error:It would be great if counterfeiter created a fake for the type alias rather than the type being aliased.
This was tested on counterfeiter v6.3.0.
The text was updated successfully, but these errors were encountered: