Open DanielSolomon opened 2 years ago
Generic type is generated e.g. like this..
(*runtime.Poller[github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage.AccountsClientCreateResponse], error)
So in this case manually save the files console output to the file which should contain the generated code and removing the github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/
part works as a workaround... (of course when adding the file to git) :-P
+1 for fixing this please :pray:
In case I use a concrete type:
Optional
is defined in another package as:When running
go generate ./...
, the following error is raised:Also tried using the workaround (mentioned in https://github.com/golang/mock/issues/621):
Result in:
Originally posted by @DanielSolomon in https://github.com/golang/mock/issues/621#issuecomment-1131310245