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 {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8.0.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
@ -124,6 +125,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() handles digest pin f
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8.1.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
@ -142,6 +144,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() handles digest updat
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8.0.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
@ -213,6 +216,7 @@ Object {
|
|||
\`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.",
|
||||
"fixedVersion": "1.3.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/kriskowal/q",
|
||||
"updates": Array [
|
||||
|
@ -259,6 +263,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() is deprecated 1`] =
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "1.3.0",
|
||||
"homepage": undefined,
|
||||
"sourceDirectory": "test",
|
||||
"sourceUrl": "https://github.com/kriskowal/q",
|
||||
|
@ -425,6 +430,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() returns complex obje
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "1.3.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/kriskowal/q",
|
||||
"updates": Array [
|
||||
|
@ -840,6 +846,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
@ -862,6 +869,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8.1",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
@ -894,6 +902,7 @@ exports[`workers/repository/process/lookup .lookupUpdates() skips uncompatible v
|
|||
Object {
|
||||
"changelogUrl": undefined,
|
||||
"dependencyUrl": undefined,
|
||||
"fixedVersion": "8.1.0",
|
||||
"homepage": undefined,
|
||||
"sourceUrl": "https://github.com/nodejs/node",
|
||||
"updates": Array [
|
||||
|
|
|
@ -31,7 +31,7 @@ export interface UpdateResult {
|
|||
sourceUrl?: string;
|
||||
skipReason: SkipReason;
|
||||
releases: Release[];
|
||||
|
||||
fixedVersion?: string;
|
||||
updates: LookupUpdate[];
|
||||
warnings: ValidationMessage[];
|
||||
}
|
||||
|
@ -142,7 +142,12 @@ export async function lookupUpdates(
|
|||
if (!isValid) {
|
||||
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
|
||||
if (!isGetPkgReleasesConfig(config)) {
|
||||
res.skipReason = SkipReason.Unknown;
|
||||
|
|
Loading…
Reference in a new issue