-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow more control over .env loading message #4027
Comments
Second this one... |
A third from me. |
It seems that since 2022.3.23 the message is printed regardless of the presence of a |
Super annoying, this just broke some CI pipelines for us. |
This comment was marked as outdated.
This comment was marked as outdated.
ci: freeze pipenv version turns out the output of `pipenv run` is not meant to be stable? pypa/pipenv#4027
turns out the output of `pipenv run` is not meant to be stable? pypa/pipenv#4027
@codl and @project0 Actually there is another issue report of this affecting requirements.txt generation so its a higher priority than I indicated prior and its out for PR now if you would have a look -- I adjusted it to only print the statement if the .env file is present. Can you check if the linked PR branch suites your needs? |
In the linked PR #5006 its based on a separate PR to move this back to stderr and only when the .env file exists. Plus in the linked PR you can pass the
|
The fix for this has been released under |
When |
Thanks @nomis waiting on an upstream setuptools issue affecting the CI to get sorted before we can merge the fix into main |
That bug was fixed here: #5010 |
I'm running automated
pipenv run ...
commands, and each and every time there is aLoading .env environment variables
message.Please, let me disable that message.
pipenv run
doesn't take switches nor is there aPIPENV_BARE
environment variable, and so output of the message is unconditional.Either support
--bare
forpipenv run
, or better still, let me control pipenv output with an environment variable likePIPENV_BARE
orPIPENV_QUIET
.What I don't want:
PIPENV_DONT_LOAD_ENV
pipenv run
have to be able to use stderr too, and if the .env is corrupted orPIPENV_DOTENV_LOCATION
is set I don't want error messages about those issues to be missed.The text was updated successfully, but these errors were encountered: