Skip to content

Commit 2ff9638

Browse files
committed
Fixing Bazel WORKSPACE python rule imports to work with Windows
The python build rules were initially added in the WORKSPACE file using git_repository(); however, that workspace rule relies on bash commands, like `rf -rm`, which are not available on Windows. Changing the ruleset download to use http_archive() instead resolves the issue.
1 parent 43963b8 commit 2ff9638

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WORKSPACE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies")
5252

5353
install_bazel_dependencies()
5454

55-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
56-
57-
git_repository(
55+
http_archive(
5856
name = "rules_python",
59-
remote = "https://github.com/bazelbuild/rules_python.git",
60-
commit = "4b84ad270387a7c439ebdccfd530e2339601ef27",
61-
shallow_since = "1564776078 -0400"
57+
urls = [
58+
"https://github.com/bazelbuild/rules_python/archive/9d68f24659e8ce8b736590ba1e4418af06ec2552.zip"
59+
],
60+
strip_prefix = "rules_python-9d68f24659e8ce8b736590ba1e4418af06ec2552",
61+
sha256 = "f7402f11691d657161f871e11968a984e5b48b023321935f5a55d7e56cf4758a",
6262
)
6363

6464
# This call should always be present.

0 commit comments

Comments
 (0)