Skip to content

Commit f6ab0f7

Browse files
authored
Reject the POETRY_VIRTUALENVS_IN_PROJECT env var too (#566)
Since it's another Poetry related env var that shouldn't be set by the end user since it can break builds. See: https://python-poetry.org/docs/configuration/#virtualenvsin-project GUS-W-22400354.
1 parent 05071ef commit f6ab0f7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Updated pip from 26.0.1 to 26.1.1. ([#563](https://github.com/heroku/buildpacks-python/pull/563))
1313
- Updated Poetry from 2.3.4 to 2.4.0. ([#564](https://github.com/heroku/buildpacks-python/pull/564))
1414
- Updated uv from 0.11.6 to 0.11.11. ([#562](https://github.com/heroku/buildpacks-python/pull/562))
15+
- The forbidden env vars check now also rejects `POETRY_VIRTUALENVS_IN_PROJECT`. ([#566](https://github.com/heroku/buildpacks-python/pull/566))
1516

1617
## [6.4.1] - 2026-04-13
1718

src/checks.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const FORBIDDEN_ENV_VARS: &[&str] = &[
2020
"POETRY_DATA_DIR",
2121
"POETRY_HOME",
2222
"POETRY_VIRTUALENVS_CREATE",
23+
"POETRY_VIRTUALENVS_IN_PROJECT",
2324
"POETRY_VIRTUALENVS_USE_POETRY_PYTHON",
2425
"PYTHONHOME",
2526
"PYTHONINSPECT",

0 commit comments

Comments
 (0)