Skip to content

Commit

Permalink
Fix regression with CI variable (#5591)
Browse files Browse the repository at this point in the history
* add missing news fragment.

* Fix regression with detection of CI env variable being set to something other than a truthy value.

* Add news fragment.

* Fix lint
  • Loading branch information
matteius authored Feb 4, 2023
1 parent 8ebb5ed commit 85b856f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/5554.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression with detection of ``CI`` env variable being set to something other than a truthy value.
1 change: 1 addition & 0 deletions news/5586.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Vendor in the ``pip==23.0`` release.
4 changes: 3 additions & 1 deletion pipenv/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def normalize_pipfile_path(p):
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)

# TF_BUILD indicates to Azure pipelines it is a build step
PIPENV_IS_CI = is_env_truthy("CI") or is_env_truthy("TF_BUILD")
PIPENV_IS_CI = get_from_env("CI", prefix="", check_for_negation=False) or is_env_truthy(
"TF_BUILD"
)


NO_COLOR = False
Expand Down

0 comments on commit 85b856f

Please sign in to comment.