Refactor version resolving (#852)

This commit is contained in:
Kevin Stillhammer
2026-04-11 11:38:41 +02:00
committed by GitHub
parent cb84d12dc6
commit cdfb2ee6dd
16 changed files with 3233 additions and 2435 deletions

6
dist/save-cache/index.cjs generated vendored
View File

@@ -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];