codenotary / immugw

Apache License 2.0
23 stars 4 forks source link

building immugw is failing #2

Closed windprak closed 3 years ago

windprak commented 3 years ago

Building immugw fails with following output:

make all
go build -v -ldflags '-X "github.com/codenotary/immudb/cmd/version.Version=0.7.1" -X "github.com/codenotary/immudb/cmd/version.Commit=3fa4bd238d3dfd8a8b9c3a6a6fae110dacf0d012" -X "github.com/codenotary/immudb/cmd/version.BuiltBy=" -X "github.com/codenotary/immudb/cmd/version.BuiltAt=1599050456"' ./cmd/immugw
github.com/codenotary/immugw/pkg/gw
# github.com/codenotary/immugw/pkg/gw
pkg/gw/metrics.go:101:35: prevRoot.Payload undefined (type *schema.Root has no field or method Payload)
pkg/gw/metrics.go:103:27: unknown field 'Payload' in struct literal of type schema.Root
pkg/gw/metrics.go:106:35: currRoot.Payload undefined (type *schema.Root has no field or method Payload)
pkg/gw/metrics.go:108:27: unknown field 'Payload' in struct literal of type schema.Root
pkg/gw/metrics.go:128:62: prevRoot.Payload undefined (type *schema.Root has no field or method Payload)
pkg/gw/metrics.go:130:61: currRoot.Payload undefined (type *schema.Root has no field or method Payload)
pkg/gw/server.go:94:48: too many arguments in call to auditor.DefaultAuditor
    have (time.Duration, string, *[]grpc.DialOption, string, string, string, schema.ImmuServiceClient, cache.HistoryCache, func(string, string, bool, bool, bool, *schema.Root, *schema.Root), logger.Logger)
    want (time.Duration, string, *[]grpc.DialOption, string, string, cache.HistoryCache, func(string, string, bool, bool, bool, *schema.Root, *schema.Root), logger.Logger)
make: *** [Makefile:50: immugw] Error 2
mmeloni commented 3 years ago

Thanks @windprak now is fixed.