Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit b6badee

Browse files
committed
fix build
1 parent 62465cb commit b6badee

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# New protobuf requires C++17
22
build --repo_env=BAZEL_CXXOPTS="-std=c++17"
3+
common --noenable_bzlmod

WORKSPACE

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@ workspace(name = "gapic_generator_python")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

5+
6+
_rules_python_version = "0.30.0"
7+
8+
_rules_python_sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c"
9+
10+
http_archive(
11+
name = "rules_python",
12+
sha256 = _rules_python_sha256,
13+
strip_prefix = "rules_python-{}".format(_rules_python_version),
14+
url = "https://github.com/bazelbuild/rules_python/archive/{}.tar.gz".format(_rules_python_version),
15+
)
16+
17+
load("@rules_python//python:repositories.bzl", "py_repositories")
18+
19+
py_repositories()
20+
21+
load("@rules_python//python:pip.bzl", "pip_parse")
22+
523
_bazel_skylib_version = "1.4.0"
624

725
_bazel_skylib_sha256 = "f24ab666394232f834f74d19e2ff142b0af17466ea0c69a3f4c276ee75f6efce"
@@ -22,24 +40,6 @@ http_archive(
2240
],
2341
)
2442

25-
_rules_python_version = "0.30.0"
26-
27-
_rules_python_sha256 = "3b8b4cdc991bc9def8833d118e4c850f1b7498b3d65d5698eea92c3528b8cf2c"
28-
29-
http_archive(
30-
name = "rules_python",
31-
sha256 = _rules_python_sha256,
32-
strip_prefix = "rules_python-{}".format(_rules_python_version),
33-
url = "https://github.com/bazelbuild/rules_python/archive/{}.tar.gz".format(_rules_python_version),
34-
)
35-
36-
load("@rules_python//python:repositories.bzl", "py_repositories")
37-
38-
py_repositories()
39-
40-
load("@rules_python//python:pip.bzl", "pip_parse")
41-
42-
4343
pip_parse(
4444
name = "gapic_generator_python_pip_deps",
4545
requirements_lock = "//:requirements.txt",

0 commit comments

Comments
 (0)