Add more option to include red hat
This commit is contained in:
Родитель
c1d4de1f30
Коммит
3629d4e968
|
@ -159,7 +159,7 @@ export class VersionResolver implements IVersionResolver {
|
||||||
}
|
}
|
||||||
Debugging.log(`Semver parsing passed: ${version}.`, this.context.eventStream);
|
Debugging.log(`Semver parsing passed: ${version}.`, this.context.eventStream);
|
||||||
|
|
||||||
if (version.split('.').length !== 2 || !parsedVer)
|
if (version.split('.').length !== 2 || version.split('.').length !== 3 || !parsedVer)
|
||||||
{
|
{
|
||||||
Debugging.log(`Resolving the version: ${version} ... it is invalid!`, this.context.eventStream);
|
Debugging.log(`Resolving the version: ${version} ... it is invalid!`, this.context.eventStream);
|
||||||
const err = new DotnetVersionResolutionError(new Error(`An invalid version was requested. Version: ${version}`), version);
|
const err = new DotnetVersionResolutionError(new Error(`An invalid version was requested. Version: ${version}`), version);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче