mirror of https://github.com/bazelbuild/platforms
buildify
This commit is contained in:
parent
b1fe119ea4
commit
c688024aad
2
BUILD
2
BUILD
|
@ -8,7 +8,7 @@ package(
|
|||
license(
|
||||
name = "license",
|
||||
license_kinds = [
|
||||
"@rules_license//licenses/spdx:Apache-2.0"
|
||||
"@rules_license//licenses/spdx:Apache-2.0",
|
||||
],
|
||||
license_text = "LICENSE",
|
||||
)
|
||||
|
|
|
@ -7,15 +7,15 @@ package(default_visibility = ["//visibility:private"])
|
|||
# run linux, so we will still catch a mismatch.
|
||||
genrule(
|
||||
name = "versions_match",
|
||||
outs = ["found_it"],
|
||||
cmd = ";\n".join([
|
||||
"""echo version: %s""" % version,
|
||||
"""grep 'version = "%s",' $(location //:MODULE.bazel) >$(location :found_it)""" % version,
|
||||
]),
|
||||
outs = ["found_it"],
|
||||
tools = [
|
||||
"//:MODULE.bazel",
|
||||
] ,
|
||||
target_compatible_with = [
|
||||
"//os:linux",
|
||||
],
|
||||
tools = [
|
||||
"//:MODULE.bazel",
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue