mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
refactor(conan): Use single cache namespace (#31033)
This commit is contained in:
parent
9dbe905e6d
commit
51ca6957e2
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
1
lib/util/cache/package/types.ts
vendored
1
lib/util/cache/package/types.ts
vendored
|
@ -36,7 +36,6 @@ export type PackageCacheNamespace =
|
|||
| 'datasource-bitrise'
|
||||
| 'datasource-cdnjs-digest'
|
||||
| 'datasource-cdnjs'
|
||||
| 'datasource-conan-revisions'
|
||||
| 'datasource-conan'
|
||||
| 'datasource-conda'
|
||||
| 'datasource-cpan'
|
||||
|
|
Loading…
Reference in a new issue