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

View File

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