👋 I wanted to use counterfeiter to generate a fake that includes a Cadence workflow.Context, which is a type alias to internal.Context: https://github.com/uber-go/cadence-client/blob/0.9.1/workflow/context.go#L33
Creating 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:
... use of internal package go.uber.org/cadence/internal not allowed
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.
👋 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.Contextresults 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.