Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

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

Open
kvsravindrareddy opened this issue Jan 22, 2019 · 1 comment

Comments

@kvsravindrareddy
Copy link

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
Copy link

sergii4 commented Jul 25, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants