https://pantsbuild.org/ logo
#general
Title
# general
s

stocky-dream-14103

03/04/2022, 6:00 PM
Hi! Curious if any MacOS Pants user ever tried and succeeded to pass a DYLD environment variable to a Pants process (e.g. a Python test)? • I’m trying to pass
DYLD_FALLBACK_LIBRARY_PATH
. I set it in
test.extra_env_vars
in
pants.toml
, set the environment variable and then call
./pants test ::
. • But it looks like MacOS System Integrity Protection is preventing me to pass the DYLD environment variable to
./pants
, because it’s running a
/bin/bash
binary, which is protected by the SIP. • I understand this is not a Pants issue, but curious if anybody had found a workaround? • Note: the issue has been documented in several StackOverflow questions, but the workarounds are not super practical (e.g. copy the bash executable outside of
/bin
or
/usr/bin
)
h

happy-kitchen-89482

03/04/2022, 8:59 PM
Hmm, I don't think we've encountered this before. Would have to learn more about SIP to express an opinion.
One thing though - you don't have to run Pants via
./pants
(although it is recommended).
You might be able to cobble together an alternative that doesn't run afoul of SIP
4 Views