Support .textproto
extension for output files in Protobuf Text Format
#4066
Labels
control-plane
Topics related to the control-plane or P4Runtime.
enhancement
This topic discusses an improvement to existing compiler code.
The official file extension for Protobuf Text Format files is
.textproto
: https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-filesBut IIUC, currently p4c requires
.txt
instead in a bunch of places, e.g. to generate P4infos or table entry files.Today:
Proposed:
The proposal is to start supporting
.textproto
and, optionally, to slowly phase out support for.txt
, e.g. by initially giving a warning and eventually failing with an error.@jafingerhut for visibility, as this came up in my review of p4lang/p4runtime#432.
The text was updated successfully, but these errors were encountered: