[VOL-5053] - Release build for votlha-lib-go
Makefile
--------
o Fixed target name, should be test-go-cover not test-go.
go.mod
go.sum
------
o update modules voltha-protos and protobuf
vendor/github.com/golang/protobuf/jsonpb/decode.go
vendor/github.com/opencord/voltha-protos/v5/LICENSE
vendor/modules.txt
---------------------------------------------------
o Edits triggered by targets mod-update and testOn branch dev-joey
makefiles/*
-----------
o Refresh library makefiles, pull in latest virtualenv.mk and lint/yaml/*
Change-Id: Id79363c85751f19ec405e5e85c5063e2e8af3911
diff --git a/vendor/github.com/golang/protobuf/jsonpb/decode.go b/vendor/github.com/golang/protobuf/jsonpb/decode.go
index 60e82ca..6c16c25 100644
--- a/vendor/github.com/golang/protobuf/jsonpb/decode.go
+++ b/vendor/github.com/golang/protobuf/jsonpb/decode.go
@@ -386,8 +386,14 @@
}
func isSingularWellKnownValue(fd protoreflect.FieldDescriptor) bool {
+ if fd.Cardinality() == protoreflect.Repeated {
+ return false
+ }
if md := fd.Message(); md != nil {
- return md.FullName() == "google.protobuf.Value" && fd.Cardinality() != protoreflect.Repeated
+ return md.FullName() == "google.protobuf.Value"
+ }
+ if ed := fd.Enum(); ed != nil {
+ return ed.FullName() == "google.protobuf.NullValue"
}
return false
}