That repository contains no vendor/ folder. On Sun, Oct 2, 2016 at 9:49 AM, <topiyadhar...@gmail.com> wrote:
> I am using vendor version only > > On Sunday, 2 October 2016 12:40:28 UTC+5:30, Axel Wagner wrote: >> >> You seemingly use both a vendored version of go-kit and a non-vendored >> version (likely you are importing something from outside of vendor/ which >> imports go-kit itself) and are trying to use a Counter from the vendored >> version in the unvendored version. As the two are different packages, the >> Counter types are considered different types too. Thus, when you try to use >> a "github.com/bla/bla/vendor/github.com/go-kit/kit/metrics".Counter >> (which returns a "vendored Counter" from it's With method) as a " >> github.com/go-kit/kit/metrics".Counter (which requires the With method >> to return an "unvendored Counter") the compiler complains. >> >> You shouldn't use two versions of the same package in the same binary. >> You'll get surprising results like this (and they may only show at >> runtime). Make sure, that everything you import is correctly vendored. >> >> On Sun, Oct 2, 2016 at 7:01 AM, T L <tapi...@gmail.com> wrote: >> >>> On Sunday, October 2, 2016 at 12:07:06 PM UTC+8, topiya...@gmail.com >>> wrote: >>>> >>>> I have two import packages and have it in vendor dir. >>>> >>>> kitprometheus "github.com/go-kit/kit/metrics/prometheus" >>>> >>>> stdprometheus "github.com/prometheus/client_golang/prometheus" >>>> >>>> >>>> error while compile with go1.7: >>>> "github.com/bla/bla/vendor/github.com/go-kit/kit/metrics".Counter does not >>>> implement "github.com/go-kit/kit/metrics".Counter (wrong type for With >>>> method) >>>> >>>> >>> could you pls put your bla/bla project on github and put its link here? >>> i >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.