Skip to content
Snippets Groups Projects
Unverified Commit d15a90a9 authored by FSuman's avatar FSuman Committed by GitHub
Browse files

feat(poetry): Use single poetry update command (#12504)

parent 4aa5b529
No related branches found
No related tags found
No related merge requests found
......@@ -117,10 +117,11 @@ export async function updateArtifacts({
await deleteLocalFile(lockFileName);
cmd.push('poetry update --lock --no-interaction');
} else {
for (let i = 0; i < updatedDeps.length; i += 1) {
const dep = updatedDeps[i];
cmd.push(`poetry update --lock --no-interaction ${quote(dep.depName)}`);
}
cmd.push(
`poetry update --lock --no-interaction ${updatedDeps
.map((dep) => quote(dep.depName))
.join(' ')}`
);
}
const tagConstraint = getPythonConstraint(existingLockFileContent, config);
const poetryRequirement = config.constraints?.poetry || 'poetry';
......
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