Skip to content

../../pkg/api/v1/account.pb.gw.go:107:3: undefined: runtime.CamelCaseFieldMask #3

@sweeny-here

Description

@sweeny-here

When building account-service it errors out on:

qwerty@qwerty-mbp > export CGO_ENABLED=0 GOOS=linux GOARCH=amd64 && go build
# optisam-backend/account-service/pkg/api/v1
../../pkg/api/v1/account.pb.gw.go:107:3: undefined: runtime.CamelCaseFieldMask
../../pkg/api/v1/account.pb.gw.go:109:56: not enough arguments in call to runtime.FieldMaskFromRequestBody
	have (io.Reader)
	want (io.Reader, *descriptorpb.DescriptorProto)

The temp fix to comment out lines in file optisam-backend/account-service/pkg/api/v1/account.pb.gw.go

//if protoReq.UpdateMask != nil && len(protoReq.UpdateMask.GetPaths()) > 0 {
//	runtime.CamelCaseFieldMask(protoReq.UpdateMask)
//} else {
//	if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader()); err != nil {
//		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
//	} else {
//		protoReq.UpdateMask = fieldMask
//	}
//}

Can you assist or advise?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions