Ignore deps starting with uv when finding uv version (#492)

Fixes: #489
This commit is contained in:
Kevin Stillhammer authored and GitHub committed 2025-07-18 06:10:43 +00:00
1 parent 05273c154d
commit 7edac99f96
4 files changed
+15 -4

No files matched your search

Generated Vendored
+2 -2
View File
@@ -125802,8 +125802,8 @@ function getUvVersionFromRequirementsFile(filePath) {
}
function getUvVersionFromAllDependencies(allDependencies) {
return allDependencies
.find((dep) => dep.startsWith("uv"))
?.match(/^uv([^A-Z0-9._-]+.*)$/)?.[1]
.find((dep) => dep.match(/^uv[=<>~!]/))
?.match(/^uv([=<>~!]+.*)$/)?.[1]
.trim();
}
function parsePyprojectDependencies(pyprojectContent) {