Skip to content

Commit

Permalink
fix(manager/pep621): run pdm commands in subdirectories (#22450)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor committed May 27, 2023
1 parent 7eb188c commit 16f7b49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/modules/manager/pep621/processors/pdm.spec.ts
Expand Up @@ -160,7 +160,7 @@ describe('modules/manager/pep621/processors/pdm', () => {
});

const result = await processor.updateArtifacts({
packageFileName: 'pyproject.toml',
packageFileName: 'folder/pyproject.toml',
newPackageFileContent: '',
config: {
updateType: 'lockFileMaintenance',
Expand All @@ -179,6 +179,9 @@ describe('modules/manager/pep621/processors/pdm', () => {
expect(execSnapshots).toMatchObject([
{
cmd: 'pdm update',
options: {
cwd: '/tmp/github/some/repo/folder',
},
},
]);
});
Expand Down
1 change: 1 addition & 0 deletions lib/modules/manager/pep621/processors/pdm.ts
Expand Up @@ -74,6 +74,7 @@ export class PdmProcessor implements PyProjectProcessor {
};

const execOptions: ExecOptions = {
cwdFile: packageFileName,
docker: {},
toolConstraints: [pythonConstraint, pdmConstraint],
};
Expand Down

0 comments on commit 16f7b49

Please sign in to comment.