Skip to content

Commit

Permalink
Fix storyboard processed_origins (#2576)
Browse files Browse the repository at this point in the history
Signed-off-by: Brentley Jones <[email protected]>
  • Loading branch information
brentleyjones authored Oct 29, 2024
1 parent fe9a83f commit f6ad705
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apple/internal/partials/support/resources_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def _storyboards(

# First, compile all the storyboard files and collect the output folders.
compiled_storyboardcs = []
processed_origins = {}
origin_short_paths = []
for storyboard in files.to_list():
storyboardc_path = paths.join(
# We append something at the end of the name to avoid having X.lproj names in the path.
Expand All @@ -652,7 +652,7 @@ def _storyboards(
output_discriminator = output_discriminator,
dir_name = storyboardc_path,
)
processed_origins[storyboardc_dir.short_path] = [storyboard.short_path]
origin_short_paths.append(storyboard.short_path)
resource_actions.compile_storyboard(
actions = actions,
input_file = storyboard,
Expand Down Expand Up @@ -682,7 +682,9 @@ def _storyboards(
files = [
(processor.location.resource, parent_dir, depset(direct = [linked_storyboard_dir])),
],
processed_origins = processed_origins,
processed_origins = {
linked_storyboard_dir.short_path: origin_short_paths,
},
)

def _texture_atlases(
Expand Down

0 comments on commit f6ad705

Please sign in to comment.