Skip to content

Commit

Permalink
fix(pdm): change pdm update strategy to eager (#29183)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed May 21, 2024
1 parent e281931 commit 2f335b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/modules/manager/pep621/artifacts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ requires-python = "<3.9"
'&& ' +
'install-tool pdm v2.5.0 ' +
'&& ' +
'pdm update --no-sync dep1' +
'pdm update --no-sync --update-eager dep1' +
'"',
options: {
cwd: '/tmp/github/some/repo',
Expand Down
12 changes: 6 additions & 6 deletions lib/modules/manager/pep621/processors/pdm.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('modules/manager/pep621/processors/pdm', () => {
'&& ' +
'install-tool pdm v2.5.0 ' +
'&& ' +
'pdm update --no-sync dep1' +
'pdm update --no-sync --update-eager dep1' +
'"',
},
]);
Expand Down Expand Up @@ -177,16 +177,16 @@ describe('modules/manager/pep621/processors/pdm', () => {
]);
expect(execSnapshots).toMatchObject([
{
cmd: 'pdm update --no-sync dep1 dep2',
cmd: 'pdm update --no-sync --update-eager dep1 dep2',
},
{
cmd: 'pdm update --no-sync -G group1 dep3 dep4',
cmd: 'pdm update --no-sync --update-eager -G group1 dep3 dep4',
},
{
cmd: 'pdm update --no-sync -dG group2 dep5 dep6',
cmd: 'pdm update --no-sync --update-eager -dG group2 dep5 dep6',
},
{
cmd: 'pdm update --no-sync -dG group3 dep7 dep8',
cmd: 'pdm update --no-sync --update-eager -dG group3 dep7 dep8',
},
]);
});
Expand Down Expand Up @@ -228,7 +228,7 @@ describe('modules/manager/pep621/processors/pdm', () => {
]);
expect(execSnapshots).toMatchObject([
{
cmd: 'pdm update --no-sync',
cmd: 'pdm update --no-sync --update-eager',
options: {
cwd: '/tmp/github/some/repo/folder',
},
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/manager/pep621/processors/pdm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { PdmLockfileSchema, type PyProject } from '../schema';
import { depTypes, parseDependencyGroupRecord } from '../utils';
import type { PyProjectProcessor } from './types';

const pdmUpdateCMD = 'pdm update --no-sync';
const pdmUpdateCMD = 'pdm update --no-sync --update-eager';

export class PdmProcessor implements PyProjectProcessor {
process(project: PyProject, deps: PackageDependency[]): PackageDependency[] {
Expand Down

0 comments on commit 2f335b6

Please sign in to comment.