Skip to content

Instantly share code, notes, and snippets.

@nyarly
Created August 29, 2017 19:16
Show Gist options
  • Save nyarly/edb6b7a5e3a762da6a5e2da8f59acf07 to your computer and use it in GitHub Desktop.
Save nyarly/edb6b7a5e3a762da6a5e2da8f59acf07 to your computer and use it in GitHub Desktop.
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