grpc / grpc/grpc-web

Could I control the import path in the future?

Open
#277 1 comment 0 reactions 0 assignees View on GitHub
codegen enhancement
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

https://github.com/grpc/grpc-web/blob/86631990e365130d5cfca3aa93613ec1eeef7da4/javascript/net/grpc/web/grpc_generator.cc#L349

Here shows the import path is hardcoded as './${basename}_pb'. So it looks like could not put the generated code in others place except the build directory.

For example, there is a proto directory `/proto/echo.proto` and I want to put the generated code in `/MyChildProject/src/api/proto/` when I still could run my build script on `/MyChildProject`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.