Skip to content

Commit

Permalink
buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
cerisier committed Sep 18, 2024
1 parent eb7c337 commit adda967
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions examples/runfiles/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ load("//swift:swift.bzl", "swift_binary")
swift_binary(
name = "binary",
srcs = ["main.swift"],
deps = [
"//swift/runfiles",
],
data = [
"data/sample.txt",
],
visibility = ["//visibility:public"],
)
deps = [
"//swift/runfiles",
],
)
3 changes: 3 additions & 0 deletions swift/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ bzl_library(
"//swift/internal:compiling",
"//swift/internal:feature_names",
"//swift/internal:linking",
"//swift/internal:runfiles",
"//swift/internal:toolchain_utils",
"//swift/internal:utils",
"@bazel_skylib//lib:paths",
Expand Down Expand Up @@ -189,6 +190,7 @@ bzl_library(
"//swift/internal:feature_names",
"//swift/internal:linking",
"//swift/internal:output_groups",
"//swift/internal:runfiles",
"//swift/internal:toolchain_utils",
"//swift/internal:utils",
"@bazel_skylib//lib:dicts",
Expand Down Expand Up @@ -252,6 +254,7 @@ bzl_library(
"//swift/internal:feature_names",
"//swift/internal:linking",
"//swift/internal:output_groups",
"//swift/internal:runfiles",
"//swift/internal:swift_symbol_graph_aspect",
"//swift/internal:toolchain_utils",
"//swift/internal:utils",
Expand Down
2 changes: 1 addition & 1 deletion swift/internal/runfiles.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def include_runfiles_constants(label, actions, all_deps):
""".format(label.workspace_name),
)
return [repo_name_file]
return []
return []
2 changes: 1 addition & 1 deletion swift/runfiles/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ swift_library(
],
module_name = "BazelRunfiles",
visibility = ["//visibility:public"],
)
)
1 change: 0 additions & 1 deletion swift/swift_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ def _swift_test_impl(ctx):
all_supplemental_outputs = []

if srcs:

srcs = srcs + include_runfiles_constants(ctx.label, ctx.actions, ctx.attr.deps)

# If the `swift_test` target had sources, compile those first and then
Expand Down

0 comments on commit adda967

Please sign in to comment.