mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(nuget): don’t warn for 3.0.0-rc version
This commit is contained in:
parent
dd8cf757a6
commit
172082509c
1 changed files with 3 additions and 2 deletions
|
@ -76,11 +76,12 @@ export async function getResourceUrl(
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
if (
|
if (
|
||||||
resourceType === 'RegistrationsBaseUrl' &&
|
resourceType === 'RegistrationsBaseUrl' &&
|
||||||
|
!version?.startsWith('3.0.0-') &&
|
||||||
!semver.satisfies(version, '^3.0.0')
|
!semver.satisfies(version, '^3.0.0')
|
||||||
) {
|
) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
{ url },
|
{ url, version },
|
||||||
`Nuget: RegistrationsBaseUrl/${version} is the major update`
|
`Nuget: Unknown version returned. Only v3 is supported`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue