@@ -629,7 +629,8 @@ def _generate_hub_and_spokes(
629
629
cargo_lockfile = cargo_lockfile ,
630
630
splicing_manifest = splicing_manifest ,
631
631
config_path = config_file ,
632
- output_dir = module_ctx .path ("{}/{}" .format (tag_path , "splicing-output" )),
632
+ output_dir = tag_path .get_child ("splicing-output" ),
633
+ debug_workspace_dir = tag_path .get_child ("splicing-workspace" ),
633
634
)
634
635
635
636
# If a cargo lockfile was not provided, use the splicing lockfile.
@@ -638,7 +639,7 @@ def _generate_hub_and_spokes(
638
639
639
640
# Create a fallback lockfile to be parsed downstream.
640
641
if lockfile == None :
641
- lockfile = module_ctx . path ("cargo-bazel-lock.json" )
642
+ lockfile = tag_path . get_child ("cargo-bazel-lock.json" )
642
643
module_ctx .file (lockfile , "" )
643
644
644
645
kwargs .update ({
@@ -648,8 +649,8 @@ def _generate_hub_and_spokes(
648
649
# The workspace root when one is explicitly provided.
649
650
nonhermetic_root_bazel_workspace_dir = module_ctx .path (Label ("@@//:MODULE.bazel" )).dirname
650
651
651
- paths_to_track_file = module_ctx . path ("paths_to_track.json" )
652
- warnings_output_file = module_ctx . path ("warnings_output.json" )
652
+ paths_to_track_file = tag_path . get_child ("paths_to_track.json" )
653
+ warnings_output_file = tag_path . get_child ("warnings_output.json" )
653
654
654
655
# Run the generator
655
656
module_ctx .report_progress ("Generating crate BUILD files for `{}`" .format (cfg .name ))
0 commit comments