Skip to content

Commit

Permalink
Revert "move bats_core BUILD to a file"
Browse files Browse the repository at this point in the history
This reverts commit 0db051d.
  • Loading branch information
jmelahman authored and filmil committed Nov 24, 2021
1 parent 550bcec commit e7dd11e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
16 changes: 15 additions & 1 deletion deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@
# https://stackoverflow.com/questions/47192668/idiomatic-retrieval-of-the-bazel-execution-path#
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

BATS_CORE_BUILD="""
sh_library(
name = "bats_lib",
srcs = glob(["libexec/**"]),
)
sh_binary(
name = "bats",
srcs = ["bin/bats"],
visibility = ["//visibility:public"],
deps = [":bats_lib"],
)
"""

def bazel_bats_dependencies(
version = "1.5.0",
sha256 = "36a3fd4413899c0763158ae194329af8f48bb1ff0d1338090b80b3416d5793af"):
http_archive(
name = "bats_core",
build_file = "@//:third_party/BUILD.bats_core",
build_file_content = BATS_CORE_BUILD,
urls = [
"https://github.com/bats-core/bats-core/archive/refs/tags/v%s.tar.gz" % version,
],
Expand Down
11 changes: 0 additions & 11 deletions third_party/BUILD.bats_core

This file was deleted.

0 comments on commit e7dd11e

Please sign in to comment.