Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(workers/repository): Pass proper lockFiles in lockFileMaintenance #27319

Merged
merged 12 commits into from
Feb 27, 2024
4 changes: 4 additions & 0 deletions lib/workers/repository/update/branch/get-updated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@
const packageFileContents =
updatedFileContents[packageFile] ||
(await getFile(packageFile, config.baseBranch));
// workaround, see #27319
if (config.packageFiles?.[packageFile]?.lockFiles) {

Check failure on line 365 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / lint-other

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.

Check failure on line 365 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / lint-other

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.

Check failure on line 365 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / build

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.
not7cd marked this conversation as resolved.
Show resolved Hide resolved
config.lockFiles = config.packageFiles![packageFile].lockFiles;

Check failure on line 366 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / lint-other

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.

Check failure on line 366 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / lint-other

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.

Check failure on line 366 in lib/workers/repository/update/branch/get-updated.ts

View workflow job for this annotation

GitHub Actions / build

Property 'lockFiles' does not exist on type 'PackageFile<Record<string, any>>[]'.
}
const results = await updateArtifacts({
packageFileName: packageFile,
updatedDeps: [],
Expand Down
Loading