diff --git a/lib/manager/types.ts b/lib/manager/types.ts index d28e977414d21a..b845b030f1793f 100644 --- a/lib/manager/types.ts +++ b/lib/manager/types.ts @@ -144,7 +144,6 @@ export interface LookupUpdate { isRange?: boolean; isRollback?: boolean; newDigest?: string; - newDigestShort?: string; newMajor?: number; newMinor?: number; newValue: string; diff --git a/lib/workers/repository/process/lookup/__snapshots__/index.spec.ts.snap b/lib/workers/repository/process/lookup/__snapshots__/index.spec.ts.snap index 1c87048435d640..f4483d0cffd151 100644 --- a/lib/workers/repository/process/lookup/__snapshots__/index.spec.ts.snap +++ b/lib/workers/repository/process/lookup/__snapshots__/index.spec.ts.snap @@ -147,7 +147,6 @@ Object { "blockedByPin": true, "bucket": "non-major", "newDigest": "sha256:abcdef1234567890", - "newDigestShort": "abcdef1", "newMajor": 8, "newMinor": 1, "newValue": "8.1.0", @@ -156,7 +155,6 @@ Object { }, Object { "newDigest": "sha256:0123456789abcdef", - "newDigestShort": "0123456", "newValue": "8.0.0", "updateType": "pin", }, @@ -170,7 +168,6 @@ Object { "updates": Array [ Object { "newDigest": "sha256:abcdef1234567890", - "newDigestShort": "abcdef1", "newValue": "alpine", "updateType": "pin", }, @@ -190,7 +187,6 @@ Object { "updates": Array [ Object { "newDigest": "sha256:abcdef1234567890", - "newDigestShort": "abcdef1", "newValue": "8.1.0", "updateType": "pin", }, @@ -212,7 +208,6 @@ Object { Object { "bucket": "non-major", "newDigest": "sha256:abcdef1234567890", - "newDigestShort": "abcdef1", "newMajor": 8, "newMinor": 1, "newValue": "8.1.0", @@ -221,7 +216,6 @@ Object { }, Object { "newDigest": "sha256:0123456789abcdef", - "newDigestShort": "0123456", "newValue": "8.0.0", "updateType": "digest", }, @@ -235,7 +229,6 @@ Object { "updates": Array [ Object { "newDigest": "sha256:abcdef1234567890", - "newDigestShort": "abcdef1", "newValue": "alpine", "updateType": "digest", }, @@ -250,7 +243,6 @@ Object { "updates": Array [ Object { "newDigest": "4b825dc642cb6eb9a060e54bf8d69288fbee4904", - "newDigestShort": "4b825dc", "newValue": undefined, "newVersion": undefined, "updateType": "digest", diff --git a/lib/workers/repository/process/lookup/index.ts b/lib/workers/repository/process/lookup/index.ts index d513e9741f7a34..8c9e3a31912f4c 100644 --- a/lib/workers/repository/process/lookup/index.ts +++ b/lib/workers/repository/process/lookup/index.ts @@ -328,13 +328,6 @@ export async function lookupUpdates( if (pinDigests || currentDigest) { update.newDigest = update.newDigest || (await getDigest(config, update.newValue)); - if (update.newDigest) { - update.newDigestShort = update.newDigest - .replace('sha256:', '') - .substring(0, 7); - } else { - logger.debug({ newValue: update.newValue }, 'Could not getDigest'); - } } } }