summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2022-01-10 21:55:08 +0100
committerDavid Ostrovsky <d.ostrovsky@gmx.de>2022-01-20 00:53:42 -0500
commit8227098d7daa08572432faf28422ffc04d0e6483 (patch)
treee944f35d4cd9f2d8a2b263f404fb002e86dbc050 /tools
parent132ba05c82a760228d049857edd9630f0ab4d1ce (diff)
downloadjgit-8227098d7daa08572432faf28422ffc04d0e6483.tar.gz
jgit-8227098d7daa08572432faf28422ffc04d0e6483.zip
Bazel: Remove version check
Recent Bazel releases perform Bazel version check, based on .bazelversion file. Change-Id: I92d5daaef8ecbd011517d314564c0f5492c8ea75
Diffstat (limited to 'tools')
-rw-r--r--tools/bazelisk_version.bzl16
1 files changed, 0 insertions, 16 deletions
diff --git a/tools/bazelisk_version.bzl b/tools/bazelisk_version.bzl
deleted file mode 100644
index d8b3d10982..0000000000
--- a/tools/bazelisk_version.bzl
+++ /dev/null
@@ -1,16 +0,0 @@
-_template = """
-load("@bazel_skylib//lib:versions.bzl", "versions")
-
-def check_bazel_version():
- versions.check(minimum_bazel_version = "{version}")
-""".strip()
-
-def _impl(repository_ctx):
- repository_ctx.symlink(Label("@//:.bazelversion"), ".bazelversion")
- bazelversion = repository_ctx.read(".bazelversion").strip()
-
- repository_ctx.file("BUILD", executable = False)
-
- repository_ctx.file("check.bzl", executable = False, content = _template.format(version = bazelversion))
-
-bazelisk_version = repository_rule(implementation = _impl)