mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-16 16:40:17 +00:00
Refactor version resolving
This commit is contained in:
parent
cb84d12dc6
commit
4c528ce33d
16 changed files with 3233 additions and 2435 deletions
6
dist/save-cache/index.cjs
generated
vendored
6
dist/save-cache/index.cjs
generated
vendored
|
|
@ -62947,6 +62947,12 @@ function getConfigValueFromTomlFile(filePath, key) {
|
|||
return void 0;
|
||||
}
|
||||
const fileContent = import_node_fs2.default.readFileSync(filePath, "utf-8");
|
||||
return getConfigValueFromTomlContent(filePath, fileContent, key);
|
||||
}
|
||||
function getConfigValueFromTomlContent(filePath, fileContent, key) {
|
||||
if (!filePath.endsWith(".toml")) {
|
||||
return void 0;
|
||||
}
|
||||
if (filePath.endsWith("pyproject.toml")) {
|
||||
const tomlContent2 = parse2(fileContent);
|
||||
return tomlContent2?.tool?.uv?.[key];
|
||||
|
|
|
|||
4694
dist/setup/index.cjs
generated
vendored
4694
dist/setup/index.cjs
generated
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue