Refactor version resolving

This commit is contained in:
Kevin Stillhammer 2026-04-11 11:17:44 +02:00
parent cb84d12dc6
commit 4c528ce33d
No known key found for this signature in database
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];