mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +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({
|
@cache({
|
||||||
namespace: `datasource-${datasource}-revisions`,
|
namespace: `datasource-${datasource}`,
|
||||||
key: ({ registryUrl, packageName }: DigestConfig, newValue?: string) =>
|
key: ({ registryUrl, packageName }: DigestConfig, newValue?: string) =>
|
||||||
// TODO: types (#22198)
|
// TODO: types (#22198)
|
||||||
`${registryUrl!}:${packageName}:${newValue!}`,
|
`getDigest:${registryUrl!}:${packageName}:${newValue!}`,
|
||||||
})
|
})
|
||||||
override async getDigest(
|
override async getDigest(
|
||||||
{ registryUrl, packageName }: DigestConfig,
|
{ registryUrl, packageName }: DigestConfig,
|
||||||
|
@ -106,7 +106,7 @@ export class ConanDatasource extends Datasource {
|
||||||
namespace: `datasource-${datasource}`,
|
namespace: `datasource-${datasource}`,
|
||||||
key: ({ registryUrl, packageName }: GetReleasesConfig) =>
|
key: ({ registryUrl, packageName }: GetReleasesConfig) =>
|
||||||
// TODO: types (#22198)
|
// TODO: types (#22198)
|
||||||
`${registryUrl}:${packageName}`,
|
`getReleases:${registryUrl}:${packageName}`,
|
||||||
})
|
})
|
||||||
async getReleases({
|
async getReleases({
|
||||||
registryUrl,
|
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-bitrise'
|
||||||
| 'datasource-cdnjs-digest'
|
| 'datasource-cdnjs-digest'
|
||||||
| 'datasource-cdnjs'
|
| 'datasource-cdnjs'
|
||||||
| 'datasource-conan-revisions'
|
|
||||||
| 'datasource-conan'
|
| 'datasource-conan'
|
||||||
| 'datasource-conda'
|
| 'datasource-conda'
|
||||||
| 'datasource-cpan'
|
| 'datasource-cpan'
|
||||||
|
|
Loading…
Reference in a new issue