mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-04-23 03:44:30 +00:00
add lowest-direct to getResolutionStrategy
This commit is contained in:
parent
5c62c59261
commit
83519d7ee3
1 changed files with 5 additions and 2 deletions
|
|
@ -240,8 +240,11 @@ function getManifestFile(): string | undefined {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getResolutionStrategy(): "highest" | "lowest" {
|
function getResolutionStrategy(): "highest" | "lowest" | "lowest-direct" {
|
||||||
const resolutionStrategyInput = core.getInput("resolution-strategy");
|
const resolutionStrategyInput = core.getInput("resolution-strategy");
|
||||||
|
if (resolutionStrategyInput === "lowest-direct") {
|
||||||
|
return "lowest-direct";
|
||||||
|
}
|
||||||
if (resolutionStrategyInput === "lowest") {
|
if (resolutionStrategyInput === "lowest") {
|
||||||
return "lowest";
|
return "lowest";
|
||||||
}
|
}
|
||||||
|
|
@ -249,6 +252,6 @@ function getResolutionStrategy(): "highest" | "lowest" {
|
||||||
return "highest";
|
return "highest";
|
||||||
}
|
}
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Invalid resolution-strategy: ${resolutionStrategyInput}. Must be 'highest' or 'lowest'.`,
|
`Invalid resolution-strategy: ${resolutionStrategyInput}. Must be 'highest', 'lowest', or 'lowest-direct'.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue