diff --git a/lib/modules/datasource/gitlab-tags/index.ts b/lib/modules/datasource/gitlab-tags/index.ts index 247b4d5e69bfe8..89ba14da0dc5f6 100644 --- a/lib/modules/datasource/gitlab-tags/index.ts +++ b/lib/modules/datasource/gitlab-tags/index.ts @@ -29,7 +29,7 @@ export class GitlabTagsDatasource extends Datasource { @cache({ namespace: `datasource-${GitlabTagsDatasource.id}`, key: ({ registryUrl, packageName }: GetReleasesConfig) => - `${getDepHost(registryUrl)}:${packageName}`, + `getReleases:${getDepHost(registryUrl)}:${packageName}`, }) async getReleases({ registryUrl, @@ -72,17 +72,17 @@ export class GitlabTagsDatasource extends Datasource { * Returs the latest commit hash of the repository. */ @cache({ - namespace: `datasource-${GitlabTagsDatasource.id}-commit`, - key: ({ registryUrl, packageName }: GetReleasesConfig) => - `${getDepHost(registryUrl)}:${packageName}`, + namespace: `datasource-${GitlabTagsDatasource.id}`, + key: ({ registryUrl, packageName }: DigestConfig) => + `getDigest:${getDepHost(registryUrl)}:${packageName}`, }) override async getDigest( - { packageName: repo, registryUrl }: Partial, + { packageName: repo, registryUrl }: DigestConfig, newValue?: string, ): Promise { const depHost = getDepHost(registryUrl); - const urlEncodedRepo = encodeURIComponent(repo!); + const urlEncodedRepo = encodeURIComponent(repo); let digest: string | null = null; try { diff --git a/lib/util/cache/package/types.ts b/lib/util/cache/package/types.ts index 7d999bcd0785cf..9d27504b69ee1b 100644 --- a/lib/util/cache/package/types.ts +++ b/lib/util/cache/package/types.ts @@ -63,7 +63,6 @@ export type PackageCacheNamespace = | 'datasource-github-release-attachments' | 'datasource-gitlab-packages' | 'datasource-gitlab-releases' - | 'datasource-gitlab-tags-commit' | 'datasource-gitlab-tags' | 'datasource-glasskube-packages' | 'datasource-go-direct'