syncthing/vendor/github.com/gogo/protobuf/test/issue260
Jakob Borg 93a04158fd vendor: Update github.com/gogo/protobuf, keeping all files
gvt fetch -a, because we need the protobuf files etc for regeneration
2017-06-14 05:24:09 +02:00
..
issue260.pb.go vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00
issue260.proto vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00
issue260pb_test.go vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00
Makefile vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00
models.go vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00
README.md vendor: Update github.com/gogo/protobuf, keeping all files 2017-06-14 05:24:09 +02:00

The Bug

If in a message the following options are set:

  • typedecl false
  • go_getters false
  • marshaller true

And one of the fields is using the stdtime and nullable false extension (to use time.Time instead of the protobuf type), then an import to the time package is added even if it is not needed.