Skip to content

Commit

Permalink
refactor(nuget): Rename cache namespace (#30880)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Aug 19, 2024
1 parent c2f2f43 commit 26a1e3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/modules/datasource/nuget/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ describe('modules/datasource/nuget/index', () => {
'Determined sourceUrl https://github.com/NLog/NLog.git from https://some-registry/v3-flatcontainer/nlog/4.7.3/nlog.4.7.3.nupkg',
);
expect(packageCache.set).toHaveBeenCalledWith(
'datasource-nuget',
'datasource-nuget-v3',
'cache-decorator:source-url:https://some-registry/v3/index.json:NLog',
{
cachedAt: expect.any(String),
Expand Down Expand Up @@ -455,7 +455,7 @@ describe('modules/datasource/nuget/index', () => {
registryUrls: ['https://some-registry/v3/index.json'],
});
expect(packageCache.set).toHaveBeenCalledWith(
'datasource-nuget',
'datasource-nuget-v3',
'cache-decorator:source-url:https://some-registry/v3/index.json:NLog',
{
cachedAt: expect.any(String),
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/nuget/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type {
} from './types';

export class NugetV3Api {
static readonly cacheNamespace = 'datasource-nuget';
static readonly cacheNamespace = 'datasource-nuget-v3';

async getResourceUrl(
http: Http,
Expand Down
2 changes: 1 addition & 1 deletion lib/util/cache/package/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export type PackageCacheNamespace =
| 'datasource-maven:metadata-xml'
| 'datasource-node-version'
| 'datasource-npm:data'
| 'datasource-nuget'
| 'datasource-nuget-v3'
| 'datasource-orb'
| 'datasource-packagist-org'
| 'datasource-packagist-public-files'
Expand Down

0 comments on commit 26a1e3d

Please sign in to comment.