Skip to content

Build plugin fails when two .proto files have the same name #41

@glbrntt

Description

@glbrntt

If two .proto files have the same name, e.g.:

  • foo/bar.proto
  • bar/bar.proto

Then the build plugin will generate files call foo/bar.grpc.swift and bar/bar.grpc.swift, when compiled these will both result in object files called bar.grpc.swift.o(the path prefix is dropped) which causes compilation to fail.

We currently pass FileNaming=FullPath to the protoc plugins, we should switch to PathToUnderscores instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.size/MMedium task. (A couple of days of work.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions