You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dws
changed the title
_PyInfo_init does not use its has_py3_only_sources parameter
PyInfo() constructor does not use its has_py3_only_sources parameter
Apr 11, 2024
Description of the bug:
Commit c475a9d introduced a new routine
_PyInfo_init
insrc/main/starlark/builtins_bzl/common/python/providers.bzl
which does the following:I believe the second line there should be
so that the value of a
has_py3_only_sources
parameter to the routine is reflected in its return value.Which category does this issue belong to?
Python Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
BUILD.bazel:
pyinfo.bzl:
Under Bazel 6.20, building the above prints
expect True: True
Under Bazel 7..1.1, building the above prints
expect True: False
Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 7.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
Yes. The bad line was introduced in commit c475a9d
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: