Comments (3)
@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
from mock.
I, for one, would really appreciate this. I tried using a replace
directive in go.mod
:
replace github.com/golang/mock => go.uber.org/mock v0.2.0
but it didn't work:
$ go mod tidy
...
go: go.uber.org/[email protected] used for two different module paths (github.com/golang/mock and go.uber.org/mock)
Is there an easy way, or do I simply have to change the import path in every Go file?
from mock.
I believe this #51 issue would also block the migration as it might conflict with upstream package's import.
from mock.
Related Issues (20)
- The use of `reflect.DeepEqual()` inside `Eq()` matcher is not trivial but not documented.
- Allow control over matching order of call expectations HOT 3
- Aliased imports don't propagate well in the generated mocks (at least in source mode) HOT 14
- Nilaway complains about generated mock HOT 2
- FPL Evolution Level 3 Chargers Missing in Mapbox API
- Import shadowing breaks generated code HOT 1
- invocation from timer triggered go routine will report data race HOT 2
- Relative path as parameter values for -source and -destination HOT 3
- Generating mocks (reflect mode) fails if interface contains methods with generic types HOT 3
- Conflict of argument name and imported package name results in compilation error
- Generate mock return an error while trying to parse a imported package name alias
- mockgen could be faster by invoking go list with different parameters.
- macOS mockgen terminated by signal SIGKILL when built with swiftlang-6.0.0.3.300 clang-1600.0.20.10 toolchain HOT 1
- Aliased type is replaced with its destination type HOT 3
- Build constraints in generated files HOT 2
- reflect mode: Relative import paths
- Proposal to resolve Issue #116 without generating ISGOMOCK Method in structs HOT 1
- exit-code of 'go list' is ignored HOT 2
- Interfaces that are type aliases are ignored HOT 5
- Mocking in a different package breaks unexported methods HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mock.