Skip to content
Snippets Groups Projects
Unverified Commit 51ca6957 authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

refactor(conan): Use single cache namespace (#31033)

parent 9dbe905e
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,10 @@ export class ConanDatasource extends Datasource {
}
@cache({
namespace: `datasource-${datasource}-revisions`,
namespace: `datasource-${datasource}`,
key: ({ registryUrl, packageName }: DigestConfig, newValue?: string) =>
// TODO: types (#22198)
`${registryUrl!}:${packageName}:${newValue!}`,
`getDigest:${registryUrl!}:${packageName}:${newValue!}`,
})
override async getDigest(
{ registryUrl, packageName }: DigestConfig,
......@@ -106,7 +106,7 @@ export class ConanDatasource extends Datasource {
namespace: `datasource-${datasource}`,
key: ({ registryUrl, packageName }: GetReleasesConfig) =>
// TODO: types (#22198)
`${registryUrl}:${packageName}`,
`getReleases:${registryUrl}:${packageName}`,
})
async getReleases({
registryUrl,
......
......@@ -36,7 +36,6 @@ export type PackageCacheNamespace =
| 'datasource-bitrise'
| 'datasource-cdnjs-digest'
| 'datasource-cdnjs'
| 'datasource-conan-revisions'
| 'datasource-conan'
| 'datasource-conda'
| 'datasource-cpan'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment