Skip to content

Commit

Permalink
Refer to build_bazel_rules_swift_index_import via a file rather than …
Browse files Browse the repository at this point in the history
…inline string (bazelbuild#647)

For consistency with other repos that do not define their own build files
  • Loading branch information
segiddins authored Jun 10, 2021
1 parent 5583fe7 commit cc1efaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 1 addition & 10 deletions swift/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,7 @@ def swift_rules_dependencies():
_maybe(
http_archive,
name = "build_bazel_rules_swift_index_import",
build_file_content = """\
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
native_binary(
name = "index_import",
src = "index-import",
out = "index-import",
visibility = ["//visibility:public"],
)
""",
build_file = "@build_bazel_rules_swift//third_party/build_bazel_rules_swift_index_import/BUILD.overlay",
canonical_id = "index-import-5.3.2.6",
urls = ["https://github.com/MobileNativeFoundation/index-import/releases/download/5.3.2.6/index-import.zip"],
sha256 = "61a58363f56c5fd84d4ebebe0d9b5dd90c74ae170405a7b9018e8cf698e679de",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")

package(default_visibility = ["//visibility:public"])

native_binary(
name = "index_import",
src = "index-import",
out = "index-import",
)

0 comments on commit cc1efaa

Please sign in to comment.