Skip to content

Move proto files under sapient_msg/ to match import paths - #13

Open
cafanasyev wants to merge 1 commit into
dstl:mainfrom
cafanasyev:folders_layout
Open

Move proto files under sapient_msg/ to match import paths#13
cafanasyev wants to merge 1 commit into
dstl:mainfrom
cafanasyev:folders_layout

Conversation

@cafanasyev

Copy link
Copy Markdown

Align directory layout with proto import paths so files compile with plain protoc

All .proto files in this repository import each other via paths like import "sapient_msg/bsi_flex_335_v2_0/location.proto", but the files themselves live at the repository root without a sapient_msg/ directory.
Because protoc resolves imports as literal paths relative to -I, the repository cannot currently be compiled as-is — users have to rename the checkout directory or create symlinks first.

This PR:

Moves proto_options.proto, bsi_flex_335_v1_0/ and bsi_flex_335_v2_0/ into a new top-level sapient_msg/ directory, with no changes to message definitions. After this, both versions compile straight from the repository root:
protoc -I . --java_out=./out sapient_msg/proto_options.proto sapient_msg/bsi_flex_335_v1_0/*.proto sapient_msg/bsi_flex_335_v2_0/*.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant