From 83519d7ee38d72ecf219ba5966308d049a2f45aa Mon Sep 17 00:00:00 2001 From: Ramona T Date: Thu, 26 Mar 2026 18:33:10 -0400 Subject: [PATCH 1/2] add lowest-direct to getResolutionStrategy --- src/utils/inputs.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/inputs.ts b/src/utils/inputs.ts index 4c189d6..b96f580 100644 --- a/src/utils/inputs.ts +++ b/src/utils/inputs.ts @@ -240,8 +240,11 @@ function getManifestFile(): string | undefined { return undefined; } -function getResolutionStrategy(): "highest" | "lowest" { +function getResolutionStrategy(): "highest" | "lowest" | "lowest-direct" { const resolutionStrategyInput = core.getInput("resolution-strategy"); + if (resolutionStrategyInput === "lowest-direct") { + return "lowest-direct"; + } if (resolutionStrategyInput === "lowest") { return "lowest"; } @@ -249,6 +252,6 @@ function getResolutionStrategy(): "highest" | "lowest" { return "highest"; } throw new Error( - `Invalid resolution-strategy: ${resolutionStrategyInput}. Must be 'highest' or 'lowest'.`, + `Invalid resolution-strategy: ${resolutionStrategyInput}. Must be 'highest', 'lowest', or 'lowest-direct'.`, ); } From 32611779567271975901d28e638f95cddedf180e Mon Sep 17 00:00:00 2001 From: Ramona T Date: Thu, 26 Mar 2026 18:34:35 -0400 Subject: [PATCH 2/2] Add lowest-direct to input documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 30736be..9603967 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Have a look under [Advanced Configuration](#advanced-configuration) for detailed # Path to a file containing the version of uv to install (default: searches uv.toml then pyproject.toml) version-file: "" - # Resolution strategy when resolving version ranges: 'highest' or 'lowest' + # Resolution strategy when resolving version ranges: 'highest', 'lowest', or 'lowest-direct' resolution-strategy: "highest" # The version of Python to set UV_PYTHON to