mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
refactor: remove SkipVersion.UnsupportedValue
This commit is contained in:
parent
586a83ec8f
commit
c34e54c5d3
5 changed files with 6 additions and 7 deletions
|
@ -345,7 +345,7 @@ Object {
|
|||
"skipReason": "invalid-dependency-specification",
|
||||
},
|
||||
Object {
|
||||
"skipReason": "unsupported-value",
|
||||
"skipReason": "invalid-value",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ export function analyseTerraformResource(
|
|||
break;
|
||||
|
||||
default:
|
||||
dep.skipReason = SkipReason.UnsupportedValue;
|
||||
dep.skipReason = SkipReason.InvalidValue;
|
||||
break;
|
||||
}
|
||||
/* eslint-enable no-param-reassign */
|
||||
|
|
|
@ -36,7 +36,6 @@ export enum SkipReason {
|
|||
UnsupportedChartType = 'unsupported-chart-type',
|
||||
UnsupportedRemote = 'unsupported-remote',
|
||||
UnsupportedUrl = 'unsupported-url',
|
||||
UnsupportedValue = 'unsupported-value',
|
||||
UnsupportedVersion = 'unsupported-version',
|
||||
Unsupported = 'unsupported',
|
||||
UnversionedReference = 'unversioned-reference',
|
||||
|
|
|
@ -1354,7 +1354,7 @@ Object {
|
|||
|
||||
exports[`workers/repository/process/lookup .lookupUpdates() skips undefined values 1`] = `
|
||||
Object {
|
||||
"skipReason": "unsupported-value",
|
||||
"skipReason": "invalid-value",
|
||||
"updates": Array [],
|
||||
"warnings": Array [],
|
||||
}
|
||||
|
@ -1362,7 +1362,7 @@ Object {
|
|||
|
||||
exports[`workers/repository/process/lookup .lookupUpdates() skips unsupported values 1`] = `
|
||||
Object {
|
||||
"skipReason": "unsupported-value",
|
||||
"skipReason": "invalid-value",
|
||||
"updates": Array [],
|
||||
"warnings": Array [],
|
||||
}
|
||||
|
|
|
@ -401,11 +401,11 @@ export async function lookupUpdates(
|
|||
res.updates.push(update);
|
||||
}
|
||||
} else if (!currentValue) {
|
||||
res.skipReason = SkipReason.UnsupportedValue;
|
||||
res.skipReason = SkipReason.InvalidValue;
|
||||
} else {
|
||||
logger.debug(`Dependency ${depName} has unsupported value ${currentValue}`);
|
||||
if (!config.pinDigests && !config.currentDigest) {
|
||||
res.skipReason = SkipReason.UnsupportedValue;
|
||||
res.skipReason = SkipReason.InvalidValue;
|
||||
} else {
|
||||
delete res.skipReason;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue