Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
util/docker_registry/dummy_client.go:80:
cannot use func literal (type
func("github.com/opentable/sous/vendor/github.com/stretchr/testify/mock".Arguments) bool
) as type
func( "github.com/stretchr/testify/mock".Arguments) bool
in argument to drc.Spy.MatchMethod
My spies package (github.com/nyarly/spies) leverages testify/mock, because the interfaces are similar.
Because I'm using my local copy of `spies` and also have vendored testify/mock, I get this conflict.
The solution is to vendor my spies package, which is inconvenient when trying to develop the support package in tandem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.