Bug: "Make" variable expansion in the env
of test bundles does not work.
#3056
Labels
bug
Something isn't working
env
of test bundles does not work.
#3056
Description
"Make" variable expansion support was added to rules_apple in this commit and shipped with version 3.6.0. This allows for Starlark like this to work without requiring a
--test_env
in a bazelrc.This works well enough when building with Bazel's CLI. With Xcode, however, the scheme that is generated for this test produces the uninterpolated value for the
env
. Is this possible to support in the xcodeproj generator?Reproduction steps
string_flag
with amake_variable
value*_unit_test
that takes thestring_flag
as one of itstoolchains
and expands the value in itsenv
attr.xcodeproj
that takes the unit test as a top-level target.Expected behavior
Observe that the generated scheme has the literal
$(MY_MAKE_VAR)
(or whatever yourmake_variable
was named), and not the interpolated value from bazelrc or even the default value.rules_xcodeproj version
2.5.1
Xcode version
15F31d
Bazel version
7.2.1
rules_apple version
3.6.0
rules_swift version
2.0.0
Additional information
I am using incremental generation and automatic scheme generation.
The text was updated successfully, but these errors were encountered: