Skip to content

build error when a.proto import b.proto, and the protos under same dir #198

@sky92zwq

Description

@sky92zwq

here is my dir layout:
a.proto depends on b.proto, so import b.proto in a.proto.

├── proto
│   ├── BUILD
│   ├── CMakeLists.txt
│   ├── a.proto
│   └── b.proto
├── src
│   ├── BUILD
│   └── main.cc
├── test
│   ├── BUILD
│   ├── main.cc
├── BUILD
├── CMakeLists.txt
├── README.md
└──WORKSPACE

bazel build got error:

proto/a.proto:5:1: Import "b.proto" was not found or had errors.

but cmake works fine.
why should I add import proto/b.proto in a.proto, but just import b.proto?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions