Use Label() to resolve repo name (#8493)

This makes sure it doesn't break users when they choose a different repo_name.
This commit is contained in:
Marcel
2025-01-22 01:49:57 +01:00
committed by GitHub
parent 27f5a0fdae
commit 121c4c99ae
3 changed files with 19 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ def flatbuffer_ts_library(
reflection_name = reflection_name,
reflection_visibility = visibility,
target_compatible_with = target_compatible_with,
flatc_path = "@com_github_google_flatbuffers//ts:compile_flat_file",
flatc_path = Label("//ts:compile_flat_file"),
toolchains = ["@aspect_rules_esbuild//esbuild:resolved_toolchain"],
tools = ["@aspect_rules_esbuild//esbuild:resolved_toolchain"],
)