Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
This repository was 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

Description

@kvsravindrareddy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions