mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-07-27 16:21:42 +00:00
Ignore deps starting with uv when finding uv version (#492)
Fixes: #489
This commit is contained in:
committed by
GitHub
parent
05273c154d
commit
7edac99f96
4
dist/setup/index.js
generated
vendored
4
dist/setup/index.js
generated
vendored
@ -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) {
|
||||
|
Reference in New Issue
Block a user