Skip to content

Commit

Permalink
fix: missing RunEnvironmentInfo (#904)
Browse files Browse the repository at this point in the history
* fix: missing RunEnvironmentInfo

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>

* fix: add reference to github issue

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
  • Loading branch information
f0rmiga committed Nov 29, 2022
1 parent b69431e commit 518c873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/config_settings/transition.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ def _transition_py_impl(ctx):
dependency_attributes = ["target"],
),
target[OutputGroupInfo],
# testing.TestEnvironment is deprecated in favour of RunEnvironmentInfo but
# TODO(f0rmiga): testing.TestEnvironment is deprecated in favour of RunEnvironmentInfo but
# RunEnvironmentInfo is not exposed in Bazel < 5.3.
# https://github.com/bazelbuild/rules_python/issues/901
# https://github.com/bazelbuild/bazel/commit/dbdfa07e92f99497be9c14265611ad2920161483
(RunEnvironmentInfo if hasattr(native, "RunEnvironmentInfo") else testing.TestEnvironment)(environment = env),
testing.TestEnvironment(environment = env),
]
return providers

Expand Down

0 comments on commit 518c873

Please sign in to comment.