fix(nuget): don’t warn for 3.0.0-rc version

This commit is contained in:
Rhys Arkins 2020-12-13 12:09:17 +01:00
parent dd8cf757a6
commit 172082509c

View file

@ -76,11 +76,12 @@ export async function getResourceUrl(
// istanbul ignore if
if (
resourceType === 'RegistrationsBaseUrl' &&
!version?.startsWith('3.0.0-') &&
!semver.satisfies(version, '^3.0.0')
) {
logger.warn(
{ url },
`Nuget: RegistrationsBaseUrl/${version} is the major update`
{ url, version },
`Nuget: Unknown version returned. Only v3 is supported`
);
}