aboutsummaryrefslogtreecommitdiff
path: root/examples/build_file_generation/WORKSPACE
diff options
context:
space:
mode:
Diffstat (limited to 'examples/build_file_generation/WORKSPACE')
-rw-r--r--examples/build_file_generation/WORKSPACE35
1 files changed, 11 insertions, 24 deletions
diff --git a/examples/build_file_generation/WORKSPACE b/examples/build_file_generation/WORKSPACE
index e283260..7c74835 100644
--- a/examples/build_file_generation/WORKSPACE
+++ b/examples/build_file_generation/WORKSPACE
@@ -20,20 +20,21 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
- sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
+ sha256 = "6dc2da7ab4cf5d7bfc7c949776b1b7c733f05e56edc4bcd9022bb249d2e2a996",
urls = [
- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
- "https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
+ "https://github.com/bazelbuild/rules_go/releases/download/v0.39.1/rules_go-v0.39.1.zip",
],
)
# Download the bazel_gazelle ruleset.
+
http_archive(
name = "bazel_gazelle",
- sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
+ sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
urls = [
- "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
- "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
+ "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
],
)
@@ -70,11 +71,8 @@ local_repository(
path = "../../gazelle",
)
-# Next we load the setup and toolchain from rules_python.
-load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
-
-# Perform general setup
-py_repositories()
+# Next we load the toolchain from rules_python.
+load("@rules_python//python:repositories.bzl", "python_register_toolchains")
# We now register a hermetic Python interpreter rather than relying on a system-installed interpreter.
# This toolchain will allow bazel to download a specific python version, and use that version
@@ -94,19 +92,8 @@ load("@rules_python//python:pip.bzl", "pip_parse")
# You can instead check this `requirements.bzl` file into your repo.
pip_parse(
name = "pip",
-
- # Requirement groups allow Bazel to tolerate PyPi cycles by putting dependencies
- # which are known to form cycles into groups together.
- experimental_requirement_cycles = {
- "sphinx": [
- "sphinx",
- "sphinxcontrib-qthelp",
- "sphinxcontrib-htmlhelp",
- "sphinxcontrib-devhelp",
- "sphinxcontrib-applehelp",
- "sphinxcontrib-serializinghtml",
- ],
- },
+ # Generate user friendly alias labels for each dependency that we have.
+ incompatible_generate_aliases = True,
# (Optional) You can provide a python_interpreter (path) or a python_interpreter_target (a Bazel target, that
# acts as an executable). The latter can be anything that could be used as Python interpreter. E.g.:
# 1. Python interpreter that you compile in the build file.