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(
|
license(
|
||||||
name = "license",
|
name = "license",
|
||||||
license_kinds = [
|
license_kinds = [
|
||||||
"@rules_license//licenses/spdx:Apache-2.0"
|
"@rules_license//licenses/spdx:Apache-2.0",
|
||||||
],
|
],
|
||||||
license_text = "LICENSE",
|
license_text = "LICENSE",
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,15 +7,15 @@ package(default_visibility = ["//visibility:private"])
|
||||||
# run linux, so we will still catch a mismatch.
|
# run linux, so we will still catch a mismatch.
|
||||||
genrule(
|
genrule(
|
||||||
name = "versions_match",
|
name = "versions_match",
|
||||||
|
outs = ["found_it"],
|
||||||
cmd = ";\n".join([
|
cmd = ";\n".join([
|
||||||
"""echo version: %s""" % version,
|
"""echo version: %s""" % version,
|
||||||
"""grep 'version = "%s",' $(location //:MODULE.bazel) >$(location :found_it)""" % version,
|
"""grep 'version = "%s",' $(location //:MODULE.bazel) >$(location :found_it)""" % version,
|
||||||
]),
|
]),
|
||||||
outs = ["found_it"],
|
|
||||||
tools = [
|
|
||||||
"//:MODULE.bazel",
|
|
||||||
] ,
|
|
||||||
target_compatible_with = [
|
target_compatible_with = [
|
||||||
"//os:linux",
|
"//os:linux",
|
||||||
],
|
],
|
||||||
|
tools = [
|
||||||
|
"//:MODULE.bazel",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue