Skip to content

Commit

Permalink
buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsky committed Dec 15, 2024
1 parent 957dcbb commit 5aa55b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/starlark_tests/rules/generate_xcframework.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ load("@bazel_skylib//lib:new_sets.bzl", "sets")
load("@bazel_skylib//lib:paths.bzl", "paths")
load("@build_bazel_apple_support//lib:apple_support.bzl", "apple_support")
load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo")
load("//apple/internal/utils:bundle_paths.bzl", "bundle_paths")
load(
"//test/starlark_tests/rules:generation_support.bzl",
"generation_support",
Expand Down Expand Up @@ -146,10 +145,10 @@ def _create_xcframework(
dsym_bundles_set = sets.make()

for file in dsym_files:
bundle_path = bundle_paths.farthest_parent(
file.short_path,
"framework.dSYM",
)
bundle_extension = ".framework.dSYM"
prefix, ext, _ = file.short_path.partition(bundle_extension)
bundle_path = prefix + ext

sets.insert(dsym_bundles_set, bundle_path)

outputs.append(actions.declare_file(
Expand Down

0 comments on commit 5aa55b5

Please sign in to comment.