Skip to content

Commit

Permalink
fix: resolve the lockFileMaintenance not working in Composer manager
Browse files Browse the repository at this point in the history
  • Loading branch information
kayw-geek committed Nov 7, 2024
1 parent 0ec3965 commit 43e319c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/modules/manager/composer/artifacts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ describe('modules/manager/composer/artifacts', () => {
updatedDeps: [],
newPackageFileContent: '{}',
config: {
updateType:"lockFileMaintenance",
...config,
isLockFileMaintenance: true,
},
}),
).toEqual([
Expand Down
3 changes: 2 additions & 1 deletion lib/modules/manager/composer/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export async function updateArtifacts({

const file = Json.pipe(PackageFile).parse(newPackageFileContent);

const isLockFileMaintenance = config.updateType === 'lockFileMaintenance';
const lockFileName = packageFileName.replace(regEx(/\.json$/), '.lock');
const lockfile = await z
.string()
Expand Down Expand Up @@ -174,7 +175,7 @@ export async function updateArtifacts({

const cmd = 'composer';
let args: string;
if (config.isLockFileMaintenance) {
if (isLockFileMaintenance) {
args = 'update';
} else {
args =
Expand Down

0 comments on commit 43e319c

Please sign in to comment.