mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
feat(internal): log fixedVersion of dependencies
This commit is contained in:
parent
2c9ebbe54b
commit
35c5fe81a1
2 changed files with 16 additions and 2 deletions
|
@ -80,6 +80,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() handles digest pin 1
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8.0.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -124,6 +125,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() handles digest pin f
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8.1.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -142,6 +144,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() handles digest updat
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8.0.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -213,6 +216,7 @@ Object {
|
||||||
\`true\`
|
\`true\`
|
||||||
|
|
||||||
Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.",
|
Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.",
|
||||||
|
"fixedVersion": "1.3.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/kriskowal/q",
|
"sourceUrl": "https://github.com/kriskowal/q",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -259,6 +263,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() is deprecated 1`] =
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "1.3.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceDirectory": "test",
|
"sourceDirectory": "test",
|
||||||
"sourceUrl": "https://github.com/kriskowal/q",
|
"sourceUrl": "https://github.com/kriskowal/q",
|
||||||
|
@ -425,6 +430,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() returns complex obje
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "1.3.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/kriskowal/q",
|
"sourceUrl": "https://github.com/kriskowal/q",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -840,6 +846,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -862,6 +869,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8.1",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
@ -894,6 +902,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
||||||
Object {
|
Object {
|
||||||
"changelogUrl": undefined,
|
"changelogUrl": undefined,
|
||||||
"dependencyUrl": undefined,
|
"dependencyUrl": undefined,
|
||||||
|
"fixedVersion": "8.1.0",
|
||||||
"homepage": undefined,
|
"homepage": undefined,
|
||||||
"sourceUrl": "https://github.com/nodejs/node",
|
"sourceUrl": "https://github.com/nodejs/node",
|
||||||
"updates": Array [
|
"updates": Array [
|
||||||
|
|
|
@ -31,7 +31,7 @@ export interface UpdateResult {
|
||||||
sourceUrl?: string;
|
sourceUrl?: string;
|
||||||
skipReason: SkipReason;
|
skipReason: SkipReason;
|
||||||
releases: Release[];
|
releases: Release[];
|
||||||
|
fixedVersion?: string;
|
||||||
updates: LookupUpdate[];
|
updates: LookupUpdate[];
|
||||||
warnings: ValidationMessage[];
|
warnings: ValidationMessage[];
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,12 @@ export async function lookupUpdates(
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
res.skipReason = SkipReason.InvalidValue;
|
res.skipReason = SkipReason.InvalidValue;
|
||||||
}
|
}
|
||||||
|
// Record if the dep is fixed to a version
|
||||||
|
if (lockedVersion) {
|
||||||
|
res.fixedVersion = lockedVersion;
|
||||||
|
} else if (currentValue && version.isSingleVersion(currentValue)) {
|
||||||
|
res.fixedVersion = currentValue.replace(/^=+/, '');
|
||||||
|
}
|
||||||
// istanbul ignore if
|
// istanbul ignore if
|
||||||
if (!isGetPkgReleasesConfig(config)) {
|
if (!isGetPkgReleasesConfig(config)) {
|
||||||
res.skipReason = SkipReason.Unknown;
|
res.skipReason = SkipReason.Unknown;
|
||||||
|
|
Loading…
Reference in a new issue