diff --git a/lib/modules/datasource/github-release-attachments/index.ts b/lib/modules/datasource/github-release-attachments/index.ts index 7baec70eea35000cad12929df8394f9dca7cbd78..14caabb969ce1d2d9cb7d52d42aca84929394732 100644 --- a/lib/modules/datasource/github-release-attachments/index.ts +++ b/lib/modules/datasource/github-release-attachments/index.ts @@ -55,7 +55,7 @@ export class GithubReleaseAttachmentsDatasource extends Datasource { ttlMinutes: 1440, namespace: `datasource-${GithubReleaseAttachmentsDatasource.id}`, key: (release: GithubRestRelease, digest: string) => - `${release.html_url}:${digest}`, + `findDigestFile:${release.html_url}:${digest}`, }) async findDigestFile( release: GithubRestRelease, @@ -83,9 +83,9 @@ export class GithubReleaseAttachmentsDatasource extends Datasource { @cache({ ttlMinutes: 1440, - namespace: 'datasource-github-releases', + namespace: `datasource-${GithubReleaseAttachmentsDatasource.id}`, key: (asset: GithubRestAsset, algorithm: string) => - `${asset.browser_download_url}:${algorithm}:assetDigest`, + `downloadAndDigest:${asset.browser_download_url}:${algorithm}`, }) async downloadAndDigest( asset: GithubRestAsset, diff --git a/lib/util/cache/package/key.spec.ts b/lib/util/cache/package/key.spec.ts index 9925dd56ef5765f45db0d19f7581109a326fdadc..72f7359bd7dab095172e6ef3afc5c388363538d5 100644 --- a/lib/util/cache/package/key.spec.ts +++ b/lib/util/cache/package/key.spec.ts @@ -3,8 +3,8 @@ import { getCombinedKey } from './key'; describe('util/cache/package/key', () => { describe('getCombinedKey', () => { it('works', () => { - expect(getCombinedKey('datasource-github-releases', 'foo:bar')).toBe( - 'global%%datasource-github-releases%%foo:bar', + expect(getCombinedKey('_test-namespace', 'foo:bar')).toBe( + 'global%%_test-namespace%%foo:bar', ); }); }); diff --git a/lib/util/cache/package/types.ts b/lib/util/cache/package/types.ts index faff79c6e6c931611babf9bdcb31f7d69c0deebb..b7580902f61508f2ed3f3a228024d5653d208ff7 100644 --- a/lib/util/cache/package/types.ts +++ b/lib/util/cache/package/types.ts @@ -62,7 +62,6 @@ export type PackageCacheNamespace = | 'datasource-git' | 'datasource-gitea-releases' | 'datasource-gitea-tags' - | 'datasource-github-releases' | 'datasource-github-release-attachments' | 'datasource-gitlab-packages' | 'datasource-gitlab-releases'