melodic-lighter-17242
10/04/2023, 7:41 AMpants test src/python/pants/util/frozendict_test.py
) and the Cargo build fails on Unrecognized syntax identifier \"proto3\". This parser only recognizes \"proto2\"
.
Has anyone encountered that before?
I’m working on a Mac M1.broad-processor-92400
10/04/2023, 8:25 AMenough-analyst-54434
10/04/2023, 12:56 PMprotoc
, which you've met, but further, it needs a protoc
compiler that is new enough to understand proto3. @melodic-lighter-17242 the protobuf compiler installed on your machine is so simply too old for hacking on Pants itself. You'll either need to upgrade your protobuf compiler or work in a vm / container dedicated to Pants hacking that has a newer protobuf compiler installed.enough-analyst-54434
10/04/2023, 1:00 PMprotoc
was not installed at all: https://github.com/pantsbuild/pants/issues/19781enough-analyst-54434
10/04/2023, 1:11 PMprotoc
to use by setting the PROTOC
environment variable. That would allow you to keep your old protoc
and install a newer one elsewhere side by side and point Pants's build process to it.melodic-lighter-17242
10/05/2023, 10:38 AM