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

payment build error #33

Open
macedemo opened this issue Nov 21, 2017 · 0 comments
Open

payment build error #33

macedemo opened this issue Nov 21, 2017 · 0 comments

Comments

@macedemo
Copy link

Well I think the readme is a bit off on what you need to go get as needed to go get a lot of packages that where missing to perform the build. The one I got an error on and it's weave works:

$ go get github.com/weaveworks/common/middleware

github.com/weaveworks/common/logging

github.com/weaveworks/common/logging/logging.go:35:13: 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

and if you try to build payment get the same error:
$ go build -o payment

github.com/weaveworks/common/logging

../../../../weaveworks/common/logging/logging.go:35:13: 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

pfandzelter added a commit to pfandzelter/payment that referenced this issue May 5, 2020
`gvt` is deprecated, Go modules are the way to go. Fortunately `go mod` understands `gvt` manifests so building the project is easy now.

Fixes microservices-demo#32 and microservices-demo#33
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

1 participant