ShiftLeftSecurity / ShiftLeftSecurity/codepropertygraph

Incompatible protobuffer (protoc) version

Open
#412 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
597
Forks
84
Avg merge
18h 29m
Merged PRs (30d)
1

Description

When running sbt stage, where my systems protobuf version is 3.9.1, I get errors like:

[error] projects/codepropertygraph/proto-bindings/target/scala-2.12/src_managed/main/compiled_protobuf/io/shiftleft/proto/cpg/Cpg.java:4534:1: cannot find symbol
[error]   symbol:   class UnusedPrivateParameter
[error]   location: class io.shiftleft.proto.cpg.Cpg.StringList

If I downgrade to version 3.7, the build works.

This issues seems similar to this one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with sbt stage using protoc 3.9.1, then compare it with protoc 3.7. Inspect the generated files under projects/codepropertygraph/proto-bindings/target/scala-2.12/src_managed/main/compiled_protobuf/, especially io/shiftleft/proto/cpg/Cpg.java, and identify the build or version configuration involved. Done means the project stages successfully with the supported protobuf version.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.