aspect-build / rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org
https://docs.aspect.build/rules/aspect_rules_ts
Apache License 2.0
94 stars 53 forks source link

Example on bazel failing when 2 ts_proto_library are in a single BUILD file #615

Closed egormodin closed 1 month ago

egormodin commented 1 month ago

error: Error in directory_path: directory_path rule '_logger_pb.d.ts_dirpath' in package 'examples/proto_grpc' conflicts with existing directory_path rule

CLAassistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

aspect-workflows[bot] commented 1 month ago

Test

:warning: GitHub Actions build #541 failed.


Buildifier

Buildifier managed files require formatting

--- ./examples/proto_grpc/BUILD.bazel   2024-06-02 17:15:49.387964463 +0000
+++ /tmp/buildifier-tmp-2409618878  2024-06-02 17:16:29.808570760 +0000
@@ -46,7 +46,7 @@
     srcs = ["main.ts"],
     deps = [
         ":logger_ts_proto",
-        ":status_ts_proto"
+        ":status_ts_proto",
     ],
 )

:bulb: Run the following to apply the suggested formatting fixes

bazel run //:buildifier

Format

Formatting check has failed

:bulb: Some formatting failures can be fixed automatically by running the command below, while others may require manual fixes

bazel run //:format -- examples/proto_grpc/BUILD.bazel

:information_source: A patch file containing the changes has been archived as an artifact of this build