Skip to content

refactor(proto): move protos to top-level api/ tree by domain/service#258

Open
behinddwalls wants to merge 1 commit into
refactorfrom
move-proto-to-api
Open

refactor(proto): move protos to top-level api/ tree by domain/service#258
behinddwalls wants to merge 1 commit into
refactorfrom
move-proto-to-api

Conversation

@behinddwalls

Copy link
Copy Markdown
Collaborator

Summary

Stacked on top of refactor (#257). Moves all proto wire contracts into a single top-level api/ tree organized by domain/service, and lays the groundwork for upcoming messagequeue payload contracts.

  • Relocate each service's proto/ and protopb/ dirs to api/{domain}/{service}/ (history-preserving renames). New importpath: github.com/uber/submitqueue/api/{domain}/{service}/protopb.
  • Update go_package, all Bazel importpaths, root gazelle:resolve hints, consumer deps, and all Go imports.
  • Generalize the tool/proto codegen rule (srcs list) and the make proto copy loop to support multiple .proto files per service package, so messagequeue contracts can later live alongside each service's RPC contract under the same api/{domain}/{service}/proto/ dir.
  • Update docs (CLAUDE.md project layout / import paths / proto-gen workflow, example/README.md).

The proto package declarations are intentionally left unchanged (only go_package moved) to avoid churning wire-level type names.

Test plan

  • make build
  • make test (54/54 pass)
  • make check-gazelle
  • make lint
  • make check-tidy
  • make proto produces zero drift vs committed stubs

Made with Cursor

Relocate each service's proto/ and protopb/ dirs under api/{domain}/{service}/,
updating go_package, Bazel importpaths, gazelle resolve hints, consumer deps,
and all Go imports to .../api/{domain}/{service}/protopb.

Generalize the tool/proto codegen rule and the `make proto` copy loop to
support multiple .proto files per service package, so messagequeue payload
contracts can later be added alongside each service's RPC contract under the
same api/{domain}/{service}/proto dir.

Co-authored-by: Cursor <cursoragent@cursor.com>
@behinddwalls behinddwalls marked this pull request as ready for review June 17, 2026 07:07
@behinddwalls behinddwalls requested review from a team and sbalabanov as code owners June 17, 2026 07:07
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