add bazel version check for external consumers

This commit is contained in:
Damien Elmes 2020-11-10 12:48:23 +10:00
parent e99c0dbe15
commit 013d1d404a

View File

@ -1,4 +1,5 @@
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
load("@bazel_skylib//lib:versions.bzl", "versions")
load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories")
load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version") load("@io_bazel_rules_rust//:workspace.bzl", "bazel_version")
load("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates") load("@net_ankiweb_anki//cargo:crates.bzl", "raze_fetch_remote_crates")
@ -15,6 +16,8 @@ anki_version = "2.1.36"
def setup_deps(): def setup_deps():
bazel_skylib_workspace() bazel_skylib_workspace()
versions.check(minimum_bazel_version = "3.7.0")
rust_repositories( rust_repositories(
edition = "2018", edition = "2018",
# use_worker = True, # use_worker = True,