microservices-demo / catalogue

Apache License 2.0
43 stars 1.64k forks source link

Go Build issues with the latest go version go1.11.4 windows/amd64 #53

Open kvsravindrareddy opened 5 years ago

kvsravindrareddy commented 5 years ago

Getting the below error while doing the go build. I really appreciate if someone can help me on this issue fix.

D:\GO\src\github.com\microservices-demo\catalogue\cmd\cataloguesvc>go build

github.com/DataDog/zstd

exec: "gcc": executable file not found in %PATH%

github.com/microservices-demo/catalogue

....\transport.go:38:69: too many arguments in call to "github.com/go-kit/kit/transport/http".NewServer have ("context".Context, endpoint.Endpoint, func("context".Context, "net/http".Request) (interface {}, error), func("context".Context, "net/http".ResponseWriter, interface {}) error, []"github.com/go-kit/kit/transport/http".ServerOption...) want (endpoint.Endpoint, "github.com/go-kit/kit/transport/http".DecodeRequestFunc, "github.com/go-kit/kit/transport/http".EncodeResponseFunc, ..."github.com/go-kit/kit/transport/http".ServerOption) ....\transport.go:46:46: undefined: "github.com/go-kit/kit/tracing/opentracing".FromHTTPRequest ....\transport.go:48:74: too many arguments in call to "github.com/go-kit/kit/transport/http".NewServer have ("context".Context, endpoint.Endpoint, func("context".Context, "net/http".Request) (interface {}, error), func("context".Context, "net/http".ResponseWriter, interface {}) error, []"github.com/go-kit/kit/transport/http".ServerOption...) want (endpoint.Endpoint, "github.com/go-kit/kit/transport/http".DecodeRequestFunc, "github.com/go-kit/kit/transport/http".EncodeResponseFunc, ..."github.com/go-kit/kit/transport/http".ServerOption) ....\transport.go:56:46: undefined: "github.com/go-kit/kit/tracing/opentracing".FromHTTPRequest ....\transport.go:58:74: too many arguments in call to "github.com/go-kit/kit/transport/http".NewServer have ("context".Context, endpoint.Endpoint, func("context".Context, "net/http".Request) (interface {}, error), func("context".Context, "net/http".ResponseWriter, interface {}) error, []"github.com/go-kit/kit/transport/http".ServerOption...) want (endpoint.Endpoint, "github.com/go-kit/kit/transport/http".DecodeRequestFunc, "github.com/go-kit/kit/transport/http".EncodeResponseFunc, ..."github.com/go-kit/kit/transport/http".ServerOption) ....\transport.go:66:46: undefined: "github.com/go-kit/kit/tracing/opentracing".FromHTTPRequest ....\transport.go:68:64: too many arguments in call to "github.com/go-kit/kit/transport/http".NewServer have ("context".Context, endpoint.Endpoint, func("context".Context, "net/http".Request) (interface {}, error), func("context".Context, "net/http".ResponseWriter, interface {}) error, []"github.com/go-kit/kit/transport/http".ServerOption...) want (endpoint.Endpoint, "github.com/go-kit/kit/transport/http".DecodeRequestFunc, "github.com/go-kit/kit/transport/http".EncodeResponseFunc, ..."github.com/go-kit/kit/transport/http".ServerOption) ....\transport.go:76:46: undefined: "github.com/go-kit/kit/tracing/opentracing".FromHTTPRequest ....\transport.go:82:72: too many arguments in call to "github.com/go-kit/kit/transport/http".NewServer have ("context".Context, endpoint.Endpoint, func("context".Context, *"net/http".Request) (interface {}, error), func("context".Context, "net/http".ResponseWriter, interface {}) error, []"github.com/go-kit/kit/transport/http".ServerOption...) want (endpoint.Endpoint, "github.com/go-kit/kit/transport/http".DecodeRequestFunc, "github.com/go-kit/kit/transport/http".EncodeResponseFunc, ..."github.com/go-kit/kit/transport/http".ServerOption) ....\transport.go:90:46: undefined: "github.com/go-kit/kit/tracing/opentracing".FromHTTPRequest ....\transport.go:82:72: too many errors

github.com/weaveworks/common/logging

........\weaveworks\common\logging\logging.go:25:16: cannot use hook (type promrus.PrometheusHook) as type "github.com/sirupsen/logrus".Hook in argument to "github.com/sirupsen/logrus".AddHook: promrus.PrometheusHook does not implement "github.com/sirupsen/logrus".Hook (wrong type for Fire method) have Fire("github.com/weaveworks/promrus/vendor/github.com/sirupsen/logrus".Entry) error want Fire("github.com/sirupsen/logrus".Entry) error

sergii4 commented 5 years ago

I have the same issue before I resolved dependencies with github.com/FiloSottile/gvt and run: gvt restore