Skip to content

Commit

Permalink
Avoid package name m due to protoc bug for java generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Oct 28, 2022
1 parent 9b56e7d commit 18659ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proptest/src/test/scala/GraphGen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ object GraphGen {

def generateName: Gen[String] = SchemaGenerators.identifier.retryUntil(isNameAvailable)

// See https://github.com/google/protobuf/issues/2738
// See https://github.com/protocolbuffers/protobuf/issues/10834
def generateJavaPackageName: Gen[String] =
SchemaGenerators.identifier.retryUntil(s => s != "key" && isNameAvailable(s))
SchemaGenerators.identifier.retryUntil(s => s != "m" && isNameAvailable(s))
}

val ROOT_NAMESPACE = Namespace(Set("foo", "bar"), None)
Expand Down

0 comments on commit 18659ac

Please sign in to comment.