Skip to content
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

fix(ts_proto_library): require explicit srcs to copy (#617) #618

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

alexeagle
Copy link
Member

Backport this commit to 2.x branch

  • Example on bazel failing when 2 ts_proto_library are in a single BUILD 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

  • fix: explicit files_to_copy for multiple ts_proto_lib

  • fix(ts_proto_library): require explicit srcs to copy

The hack of using a glob over the srcs causes a collision when there is more than one ts_proto_library in a bazel package. The resulting error doesn't give a clue what fix is required.

  • chore: docgen

  • fix: docs

* Example on bazel failing when 2 ts_proto_library are in a single BUILD 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`

* fix: explicit files_to_copy for multiple ts_proto_lib

* fix(ts_proto_library): require explicit srcs to copy

The hack of using a glob over the srcs causes a collision when there is more than one ts_proto_library in a bazel package.
The resulting error doesn't give a clue what fix is required.

* chore: docgen

* fix: docs

---------

Co-authored-by: egorm <egorm@google.com>
Copy link

aspect-workflows bot commented Jun 3, 2024

Test

All tests were cache hits

79 tests (100.0%) were fully cached saving 10s.


Buildifier      Format

@alexeagle alexeagle enabled auto-merge (squash) June 3, 2024 18:47
@alexeagle alexeagle merged commit 87e3723 into main Jun 3, 2024
23 checks passed
@alexeagle alexeagle deleted the backport branch June 3, 2024 19:53
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.

2 participants