一个包和主要包使用通用的第三个包时的导入路径问题

I have several microservices written in golang, and wanted to provide some common services. In this example, I have a common go-restful filter that does authorization of API calls. The compilation error indicates that the auth package and the main package are importing the underlying go-restful from different places.

Is there a nice way to resolve this without collapsing the code into one repository?

./main.go:104: cannot use AUTHZ.AuthorizeFilter() 
(type "github.com/Solinea/gsk-common/auth/vendor/github.com/emicklei/go-restful".FilterFunction) as type 
"github.com/Solinea/gsk-analytics/vendor/github.com/emicklei/go-restful".FilterFunction 
in argument to "github.com/Solinea/gsk-analytics/vendor/github.com/emicklei/go-restful".Filter