From dcfc9d988557b9d722fff56041227539ad8ede4e Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Mon, 30 Aug 2021 11:08:48 +0200 Subject: [PATCH] fix(travis): massage currentValue to string (#11475) --- lib/manager/travis/__snapshots__/extract.spec.ts.snap | 4 ++-- lib/manager/travis/extract.ts | 2 +- lib/util/cache/repository/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/manager/travis/__snapshots__/extract.spec.ts.snap b/lib/manager/travis/__snapshots__/extract.spec.ts.snap index 78b519ee6b..86319bb46a 100644 --- a/lib/manager/travis/__snapshots__/extract.spec.ts.snap +++ b/lib/manager/travis/__snapshots__/extract.spec.ts.snap @@ -4,13 +4,13 @@ exports[`manager/travis/extract extractPackageFile() returns results 1`] = ` Object { "deps": Array [ Object { - "currentValue": 6, + "currentValue": "6", "datasource": "github-tags", "depName": "node", "lookupName": "nodejs/node", }, Object { - "currentValue": 8, + "currentValue": "8", "datasource": "github-tags", "depName": "node", "lookupName": "nodejs/node", diff --git a/lib/manager/travis/extract.ts b/lib/manager/travis/extract.ts index 178c146231..58ffe64021 100644 --- a/lib/manager/travis/extract.ts +++ b/lib/manager/travis/extract.ts @@ -19,7 +19,7 @@ export function extractPackageFile(content: string): PackageFile | null { depName: 'node', datasource: datasourceGithubTags.id, lookupName: 'nodejs/node', - currentValue, + currentValue: currentValue.toString(), })); } if (!deps.length) { diff --git a/lib/util/cache/repository/index.ts b/lib/util/cache/repository/index.ts index 23ac610359..cd726ab7e0 100644 --- a/lib/util/cache/repository/index.ts +++ b/lib/util/cache/repository/index.ts @@ -9,7 +9,7 @@ import { logger } from '../../../logger'; import type { Cache } from './types'; // Increment this whenever there could be incompatibilities between old and new cache structure -export const CACHE_REVISION = 8; +export const CACHE_REVISION = 9; let repositoryCache: RepositoryCacheConfig = 'disabled'; let cacheFileName: string;