correct workspace_definitions.bzl, do not include self (#21)

* correct workspace_definitions.bzl, do not include self

* use workspace definitions from WORKSPACE
This commit is contained in:
irengrig 2018-08-13 15:02:25 +02:00 committed by GitHub
parent 838fdb117c
commit be719ee2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 28 deletions

View File

@ -1,17 +1,10 @@
workspace(name = "rules_foreign_cc") workspace(name = "rules_foreign_cc")
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])""" load("//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
new_http_archive( rules_foreign_cc_dependencies()
name = "bazel_skylib",
build_file_content = all_content, all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f",
strip_prefix = "bazel-skylib-0.5.0",
type = "tar.gz",
urls = [
"https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
],
)
new_http_archive( new_http_archive(
name = "libevent", name = "libevent",

View File

@ -1,18 +1,13 @@
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])""" def rules_foreign_cc_dependencies():
_all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
http_archive( native.new_http_archive(
name = "rules_foreign_cc", name = "bazel_skylib",
strip_prefix = "rules_foreign_cc-master", build_file_content = _all_content,
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/master.zip", sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f",
) strip_prefix = "bazel-skylib-0.5.0",
type = "tar.gz",
new_http_archive( urls = [
name = "bazel_skylib", "https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
build_file_content = all_content, ],
sha256 = "b5f6abe419da897b7901f90cbab08af958b97a8f3575b0d3dd062ac7ce78541f", )
strip_prefix = "bazel-skylib-0.5.0",
type = "tar.gz",
urls = [
"https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.tar.gz",
],
)