Skip to content
Snippets Groups Projects
Unverified Commit 16f7b491 authored by Sebastian Poxhofer's avatar Sebastian Poxhofer Committed by GitHub
Browse files

fix(manager/pep621): run pdm commands in subdirectories (#22450)

parent 7eb188ce
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ describe('modules/manager/pep621/processors/pdm', () => { ...@@ -160,7 +160,7 @@ describe('modules/manager/pep621/processors/pdm', () => {
}); });
const result = await processor.updateArtifacts({ const result = await processor.updateArtifacts({
packageFileName: 'pyproject.toml', packageFileName: 'folder/pyproject.toml',
newPackageFileContent: '', newPackageFileContent: '',
config: { config: {
updateType: 'lockFileMaintenance', updateType: 'lockFileMaintenance',
...@@ -179,6 +179,9 @@ describe('modules/manager/pep621/processors/pdm', () => { ...@@ -179,6 +179,9 @@ describe('modules/manager/pep621/processors/pdm', () => {
expect(execSnapshots).toMatchObject([ expect(execSnapshots).toMatchObject([
{ {
cmd: 'pdm update', cmd: 'pdm update',
options: {
cwd: '/tmp/github/some/repo/folder',
},
}, },
]); ]);
}); });
......
...@@ -74,6 +74,7 @@ export class PdmProcessor implements PyProjectProcessor { ...@@ -74,6 +74,7 @@ export class PdmProcessor implements PyProjectProcessor {
}; };
const execOptions: ExecOptions = { const execOptions: ExecOptions = {
cwdFile: packageFileName,
docker: {}, docker: {},
toolConstraints: [pythonConstraint, pdmConstraint], toolConstraints: [pythonConstraint, pdmConstraint],
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment