Skip to content

Commit 93dc224

Browse files
authored
Mention uv.lock in the detection failed error message (#567)
Since it's currently the only package manager file that wasn't explicitly mentioned in the message. In the future this message will be expanded further (to more closely align with that used by the classic Python buildpack), but for now this is a quick win. GUS-W-22400929.
1 parent f6ab0f7 commit 93dc224

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
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))
1515
- The forbidden env vars check now also rejects `POETRY_VIRTUALENVS_IN_PROJECT`. ([#566](https://github.com/heroku/buildpacks-python/pull/566))
16+
- Updated the wording of the message shown when buildpack detection fails to also mention `uv.lock`. ([#567](https://github.com/heroku/buildpacks-python/pull/567))
1617

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

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl Buildpack for PythonBuildpack {
5353
DetectResultBuilder::pass().build()
5454
} else {
5555
log_info(
56-
"No Python project files found (such as pyproject.toml, requirements.txt or poetry.lock).",
56+
"No supported Python package manager files found (such as requirements.txt, poetry.lock or uv.lock).",
5757
);
5858
DetectResultBuilder::fail().build()
5959
}

tests/detect_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn detect_rejects_non_python_projects() {
1111
assert_contains!(
1212
context.pack_stdout,
1313
indoc! {"========
14-
No Python project files found (such as pyproject.toml, requirements.txt or poetry.lock).
14+
No supported Python package manager files found (such as requirements.txt, poetry.lock or uv.lock).
1515
======== Results ========
1616
"}
1717
);

0 commit comments

Comments
 (0)