able-school-92027
07/11/2024, 7:49 PM--no-pantsd
the file is downloaded from S3 and it works fine, however, without the --no-pantsd
flag, I get an error IntrinsicError: Client error (403) downloading file
.
Digging on the S3 download handler I've noticed that the AWS_PROFILE
env var is not present when pants is running through pantsd, and therefore the AWS credentials are not correctly loaded to download the file, so I'm wondering if it would be possible to have AWS_PROFILE
when pants is running through pantsd?broad-processor-92400
07/11/2024, 11:08 PMbitter-ability-32190
07/12/2024, 11:21 AMable-school-92027
07/12/2024, 2:46 PMextra_env_vars
option or something similar like we have on some subsystems but didn't find anything. Also setting the env var inline with the command doesn't seem to work, e.g. AWS_PROFILE=foo pants lint ::
.able-school-92027
07/12/2024, 9:58 PM<http://logger.info|logger.info>(os.environ)
and it looks like I only have HOME
, USER
,PATH
and __PANTS_BIN_NAME
, so I'm assuming the pantsd process only have these preserved env vars?
When I run commands with --no-pantsd
I have all my host env vars available on os.environ
.
I didn't find a way to tell pantsd to forward other host env vars to its process, e.g. AWS_PROFILE
. Is this currently not an option?bitter-ability-32190
07/12/2024, 10:58 PMbroad-processor-92400
07/15/2024, 1:09 AMable-school-92027
07/16/2024, 12:30 PMpantsd_*
global options, right?bitter-ability-32190
07/16/2024, 1:28 PM