mirror of https://github.com/bazelbuild/platforms
- bump dependency on rules_license to 0.0.4
- That picks up version that users cfg=exec instead of cfg=host - It still works with bazel 5.x. The next rules_license might not. - bump our version to 0.0.7 for next release - add presubmit check that we did not mistmatch the license
This commit is contained in:
parent
81c2f191d5
commit
ce09fb7f5c
5
BUILD
5
BUILD
|
@ -13,7 +13,10 @@ license(
|
|||
license_text = "LICENSE",
|
||||
)
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
exports_files([
|
||||
"LICENSE",
|
||||
"MODULE.bazel",
|
||||
])
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module(
|
||||
name = "platforms",
|
||||
version = "0.0.8", # keep in sync with version.bzl
|
||||
version = "0.0.7", # keep in sync with version.bzl
|
||||
compatibility_level = 1,
|
||||
)
|
||||
|
||||
bazel_dep(name = "rules_license", version = "0.0.3")
|
||||
bazel_dep(name = "rules_license", version = "0.0.4")
|
||||
|
|
|
@ -5,7 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|||
http_archive(
|
||||
name = "rules_license",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
|
||||
"https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz",
|
||||
],
|
||||
sha256 = "00ccc0df21312c127ac4b12880ab0f9a26c1cff99442dc6c5a331750360de3c3",
|
||||
sha256 = "6157e1e68378532d0241ecd15d3c45f6e5cfd98fc10846045509fb2a7cc9e381",
|
||||
)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
load("//:version.bzl", "version")
|
||||
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
# This is a quick hack to make sure that version.bzl agrees with MODULE.bazel
|
||||
# It only works from Linux, but that is sufficient, becuase we do a presubmit
|
||||
# run linux, so we will still catch a mismatch.
|
||||
genrule(
|
||||
name = "versions_match",
|
||||
cmd = """grep 'version = "%s",' $(location //:MODULE.bazel) >$(location :found_it)""" % version,
|
||||
outs = ["found_it"],
|
||||
tools = [
|
||||
"//:MODULE.bazel",
|
||||
] ,
|
||||
target_compatible_with = [
|
||||
"//os:linux",
|
||||
],
|
||||
)
|
|
@ -13,4 +13,4 @@
|
|||
# limitations under the License.
|
||||
"""The version of bazelbuild/platforms."""
|
||||
|
||||
version = "0.0.6"
|
||||
version = "0.0.7"
|
||||
|
|
Loading…
Reference in New Issue