Skip to content

Commit 34e878d

Browse files
committed
fix(python): add --quiet flag to pip report command
Suppresses pip progress messages on stdout that contaminate the JSON report output, causing Jackson parse errors on pyproject.toml analysis. Implements TC-4164 Assisted-by: Claude Code
1 parent a4069a3 commit 34e878d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/io/github/guacsec/trustifyda/providers/PythonPyprojectProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ String getPipReportOutput(Path manifestDir) {
153153
}
154154

155155
String pip = findPipBinary();
156-
String[] cmd = {pip, "install", "--dry-run", "--ignore-installed", "--report", "-", "."};
156+
String[] cmd = {
157+
pip, "install", "--dry-run", "--ignore-installed", "--quiet", "--report", "-", "."
158+
};
157159
Operations.ProcessExecOutput result =
158160
Operations.runProcessGetFullOutput(manifestDir, cmd, null);
159161
if (result.getExitCode() != 0) {

0 commit comments

Comments
 (0)