This commit is contained in:
Tony Aiuto 2023-02-09 10:56:04 -05:00
parent b1fe119ea4
commit c688024aad
2 changed files with 5 additions and 5 deletions

2
BUILD
View File

@ -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",
)

View File

@ -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",
],
)