Skip to content

Commit d024075

Browse files
refactor: add lock file names to manager api (renovatebot#41133)
* feat(nuget): add supportsLockFileMaintenance flag The NuGet manager supports lock file maintenance via `packages.lock.json` but was missing the `supportsLockFileMaintenance` export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat(manager): add lockFileNames metadata to all lock file managers Add `lockFileNames` field to `ManagerApi` interface and export it from all 24 managers that support lock file maintenance. This metadata will be used to auto-generate the lock file support table in docs. Also adds a validation test ensuring managers with `supportsLockFileMaintenance` always provide `lockFileNames`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e6f2c78 commit d024075

File tree

26 files changed

+39
-0
lines changed

26 files changed

+39
-0
lines changed

lib/modules/manager/bun/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const categories: Category[] = ['js'];
1111

1212
export const supersedesManagers = ['npm'];
1313
export const supportsLockFileMaintenance = true;
14+
export const lockFileNames = ['bun.lockb', 'bun.lock'];
1415

1516
export const defaultConfig = {
1617
managerFilePatterns: ['/(^|/)bun\\.lockb?$/', '/(^|/)package\\.json$/'],

lib/modules/manager/bundler/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { extractPackageFile } from './extract.ts';
77
import { updateLockedDependency } from './update-locked.ts';
88

99
export const supportsLockFileMaintenance = true;
10+
export const lockFileNames = ['Gemfile.lock'];
1011

1112
/*
1213
* Each of the below functions contain some explanations within their own files.

lib/modules/manager/cargo/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export { bumpPackageVersion } from './update.ts';
1212
export { updateLockedDependency } from './update-locked.ts';
1313

1414
export const supportsLockFileMaintenance = true;
15+
export const lockFileNames = ['Cargo.lock'];
1516

1617
export { extractPackageFile, updateArtifacts };
1718

lib/modules/manager/composer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { updateLockedDependency } from './update-locked.ts';
99
import { composerVersioningId } from './utils.ts';
1010

1111
export const supportsLockFileMaintenance = true;
12+
export const lockFileNames = ['composer.lock'];
1213

1314
export {
1415
extractPackageFile,

lib/modules/manager/conan/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { ConanDatasource } from '../../datasource/conan/index.ts';
99
import * as conan from '../../versioning/conan/index.ts';
1010

1111
export const supportsLockFileMaintenance = true;
12+
export const lockFileNames = ['conan.lock'];
1213
export const url = 'https://docs.conan.io';
1314
export const categories: Category[] = ['c'];
1415

lib/modules/manager/devbox/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export { updateArtifacts } from './artifacts.ts';
44
export { extractPackageFile } from './extract.ts';
55

66
export const supportsLockFileMaintenance = true;
7+
export const lockFileNames = ['devbox.lock'];
78

89
export const defaultConfig = {
910
managerFilePatterns: ['/(^|/)devbox\\.json$/'],

lib/modules/manager/gleam/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export const defaultConfig = {
1313
};
1414

1515
export const supportsLockFileMaintenance = true;
16+
export const lockFileNames = ['manifest.toml'];
1617
export const supportedDatasources = [HexDatasource.id];

lib/modules/manager/gradle/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export { extractAllPackageFiles } from './extract.ts';
77
export { updateDependency } from './update.ts';
88

99
export const supportsLockFileMaintenance = true;
10+
export const lockFileNames = ['gradle.lockfile'];
1011

1112
export const url =
1213
'https://docs.gradle.org/current/userguide/getting_started_dep_man.html';

lib/modules/manager/helmfile/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export { updateArtifacts } from './artifacts.ts';
66
export { extractPackageFile } from './extract.ts';
77

88
export const supportsLockFileMaintenance = true;
9+
export const lockFileNames = ['helmfile.lock'];
910

1011
export const url = 'https://helmfile.readthedocs.io';
1112
export const categories: Category[] = ['cd', 'helm', 'kubernetes'];

lib/modules/manager/helmv3/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export { extractPackageFile } from './extract.ts';
77
export { bumpPackageVersion } from './update.ts';
88

99
export const supportsLockFileMaintenance = true;
10+
export const lockFileNames = ['Chart.lock'];
1011

1112
export const displayName = 'Helm v3';
1213
export const url = 'https://helm.sh/docs';

0 commit comments

Comments
 (0)