acoustic-garden-4018205/10/2023, 3:14 PM
. Everything works perfectly. I'm able to pass environment variables in with
, and this also works.
However, if I do this
, assuming that the .env file is in the current working directory, I get the following error:
Is loading environment variables from a file supported by Pants in this case? I'm on version 2.16.0rc1.
docker: open .env: no such file or directory.
curved-television-656805/10/2023, 3:29 PM
file is not present in the sandbox, meaning there is nothing depending on it to make Pants include it.
is interactive, so the sandbox argument may be moot here…
Is loading environment variables from a file supported by Pants in this case?To answer this, yes, if you use
(the new Pants launcher binary) you can have a
file to load env vars from in the root of the repo. Otherwise you can have a
in it which will work in either launcher version (script or binary)
acoustic-garden-4018205/10/2023, 4:45 PM