]> source.dussan.org Git - jgit.git/commit
Bazel: Reuse version from .bazelversion for minimum used version check 66/149966/1
authorDavid Ostrovsky <david@ostrovsky.org>
Mon, 23 Sep 2019 07:20:41 +0000 (09:20 +0200)
committerDavid Ostrovsky <david@ostrovsky.org>
Mon, 23 Sep 2019 07:23:21 +0000 (09:23 +0200)
commit5caa951515068409f913d62ff6712c8d0f3b72c4
tree9efd4554f3c137388d9b9c3415f65c284b8346f5
parentd75a6b5d813710ea1b21e05c50c6c32219e5f83a
Bazel: Reuse version from .bazelversion for minimum used version check

Bazel is still supported in addition to the Bazel wrapper Bazelisk,
that is recommended, as it would automatically switch to the right
Bazel version on stable branches (like it was the case with Buck).

That why minimum used Bazel version check is still needed in WORKSPACE
file in addition to the .bazelversion used by Bazelisk. That means that
currently, bazel version is maintained in two places:

* .bazelversion
* WORKSPACE

This change introduces the repository rule to read the bazel version
from the .bazelversion file and perform the minimum version check.

Change-Id: Ib9c1382935ded7bcd322ed0122838c40ba2faa6c
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
WORKSPACE
tools/bazelisk_version.bzl [new file with mode: 0644]