mirror of https://github.com/aminya/setup-cpp
fix: warn on not respecting the requested apt version upon failures
This commit is contained in:
parent
a06af07c8d
commit
080dafd056
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -213,6 +213,9 @@ async function getAptArg(apt: string, name: string, version: string | undefined)
|
|||
case AptPackageType.NameEqualsVersion:
|
||||
return `${name}=${version}`
|
||||
case AptPackageType.Name:
|
||||
if (version !== undefined) {
|
||||
warning(`Could not find package ${name} ${version}. Installing the latest version.`)
|
||||
}
|
||||
return name
|
||||
default:
|
||||
throw new Error(`Could not find package ${name} ${version ?? ""}`)
|
||||
|
|
Loading…
Reference in New Issue