Skip to content

Wire shouldn't try to load both foo.proto and ././foo.proto #507

@asarazan

Description

@asarazan

I tried to switch to wire 2.0 and it's spewing errors. Maybe I'm just getting something wrong with the proto_path setting?

~/level/brotofuff/resources/proto $ java -jar ~/wire-compiler-2.0.0-jar-with-dependencies.jar --java_out=~/wiretmp --proto_path=. `find . -name '*.proto'`

yields a whole bunch of stuff like this:

./users.proto needs to import users.proto
  for field error2 (././users.proto at 24:3)
  in message com.levelmoney.proto.users.SendPasswordResetResponse (././users.proto at 17:1)

The proto in question looks like this:

message SendPasswordResetResponse {
  enum SendPasswordResetError { ... }
  optional common.Error error = 1;
  optional common.Events events = 2;
  optional SendPasswordResetError error2 = 3;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions