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

ambitious-actor-36781

07/15/2022, 1:12 AM
have I done a dumb thing. I've added loading of a
.env
file to the pants bootstrapper.
Copy code
if [[ -f ".env" ]]; then 
  warn "Loading .env file" 1>&2
  export $(cat .env | xargs)
fi
feels like it's a cheap way to load the contents of a .env file every time its needed.
c

curved-television-6568

07/15/2022, 6:38 AM
In recent version of the bootstrap script it does this already, no need to patch it then. ;)
(Almost, it sources a .pants.bootstrap script if it exists. Name is configurable.