Skip to content

Commit

Permalink
refactor(conan): Use single cache namespace (#31033)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Aug 27, 2024
1 parent 9dbe905 commit 51ca695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/modules/datasource/conan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion lib/util/cache/package/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export type PackageCacheNamespace =
| 'datasource-bitrise'
| 'datasource-cdnjs-digest'
| 'datasource-cdnjs'
| 'datasource-conan-revisions'
| 'datasource-conan'
| 'datasource-conda'
| 'datasource-cpan'
Expand Down

0 comments on commit 51ca695

Please sign in to comment.