-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on build ts_proto_library
from external proto
#622
base: main
Are you sure you want to change the base?
Conversation
…D file error: `Error in directory_path: directory_path rule '_logger_pb.d.ts_dirpath' in package 'examples/proto_grpc' conflicts with existing directory_path rule`
# Conflicts: # examples/proto_grpc/BUILD.bazel # ts/proto.bzl
Error: `Error in directory_path: illegal rule name: _@com_google_protobuf//:timestamp_pb.d.ts_dirpath: invalid target name '_@com_google_protobuf//:timestamp_pb.d.ts_dirpath': target names may not contain '//' path separators` Second issue: `proto` file is not usually accessible, but the `d.ts` files is needed to be copied, so there is no valid way to build it into source tree. I suppose the d.ts file should be created from external proto and copied into source tree. Since there is no access to the `proto` file then the rule should be able to use only `proto_library`. By adding dependency into `ts_proto_library` I am trying to ask compiler to use same ts file as I am able to use in the code.
|
In the current tapestry project we are using |
No worries, i believe timestamp proto is different than googleapis as for WKT types no generation needed. I'll fix it. BTW you can do in
|
right, no generation needed, but the current example results with the same error that I have by using |
btw to add
|
Error:
Error in directory_path: illegal rule name: _@com_google_protobuf//:timestamp_pb.d.ts_dirpath: invalid target name '_@com_google_protobuf//:timestamp_pb.d.ts_dirpath': target names may not contain '//' path separators
Second issue:
proto
file is not usually accessible, but thed.ts
files is needed to be copied, so there is no valid way to build it into source tree.I suppose the d.ts file should be created from external proto and copied into source tree. Since there is no access to the
proto
file then the rule should be able to use onlyproto_library
. By adding dependency intots_proto_library
I am trying to ask compiler to use same ts file as I am able to use in the code.