Package: golang-google-protobuf / 1.28.1-3
Metadata
Package | Version | Patches format |
---|---|---|
golang-google-protobuf | 1.28.1-3 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
0001 encoding protojson fix parsing of google.protobuf.Ti.patch | (download) |
encoding/protojson/well_known_types.go |
12 9 + 3 - 0 ! |
encoding/protojson: fix parsing of google.protobuf.timestamp The Timestamp message uses a subset of RFC 3339. RFC 3339, section 5.6 specifies that the subsecond field can have any non-zero number of digits. On the other hand, the protobuf documentation specifies that Timestamp uses RFC 3339 with a few restrictions. In other words, protobuf does NOT use RFC 3339, but rather a subset of it. An upstream change https://go.dev/cl/425037 modifies the time package to be internally consistent about handling of extra subsecond digits allowing it to be more in line with RFC 3339. Make a corresponding change here to ensure we remain compliant with protobuf's restricted use of RFC 3339. |
1