Open sywhang opened 1 year ago
@barrettj12 it is a bit weird when switching because of the present github.com/golang/mock
dependency. But Find+Replace with github.com/golang/mock
-> go.uber.org/mock/gomock
and mod tidy-ing should do the job
I believe this https://github.com/uber-go/mock/issues/51 issue would also block the migration as it might conflict with upstream package's import.
I, for one, would really appreciate this. I tried using a
replace
directive ingo.mod
:but it didn't work:
Is there an easy way, or do I simply have to change the import path in every Go file?