Skip to content

Commit

Permalink
chore: use per-rule loads in pip_compile.bzl (#2473)
Browse files Browse the repository at this point in the history
This is for overall code hygiene, but also because it seems to make some
progress on Bazel 9
being able to load files in WORKSPACE mode (something about defs.bzl
triggers loading
more symbols which can't be found)

Work towards #2469
  • Loading branch information
rickeylev authored Dec 6, 2024
1 parent ef48735 commit 9b2b70a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/private/pypi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ bzl_library(
srcs = ["pip_compile.bzl"],
deps = [
":deps_bzl",
"//python:defs_bzl",
"//python:py_binary_bzl",
"//python:py_test_bzl",
],
)

Expand Down
3 changes: 2 additions & 1 deletion python/private/pypi/pip_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ NOTE @aignas 2024-06-23: We are using the implementation specific name here to
make it possible to have multiple tools inside the `pypi` directory
"""

load("//python:defs.bzl", _py_binary = "py_binary", _py_test = "py_test")
load("//python:py_binary.bzl", _py_binary = "py_binary")
load("//python:py_test.bzl", _py_test = "py_test")

def pip_compile(
name,
Expand Down

0 comments on commit 9b2b70a

Please sign in to comment.