diff --git a/src/main/java/io/kestra/plugin/dbt/cli/AbstractDbt.java b/src/main/java/io/kestra/plugin/dbt/cli/AbstractDbt.java index f4e755a..89a3476 100644 --- a/src/main/java/io/kestra/plugin/dbt/cli/AbstractDbt.java +++ b/src/main/java/io/kestra/plugin/dbt/cli/AbstractDbt.java @@ -175,7 +175,10 @@ public void accept(String line, Boolean isStdErr) throws Exception { ); ScriptOutput run = commandsWrapper - .addEnv(Map.of("PYTHONUNBUFFERED", "true")) + .addEnv(Map.of( + "PYTHONUNBUFFERED", "true", + "PIP_ROOT_USER_ACTION", "ignore" + )) .withCommands(commandsArgs) .run(); diff --git a/src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java b/src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java index 66c7beb..52a5055 100644 --- a/src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java +++ b/src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java @@ -154,7 +154,10 @@ public void accept(String line, Boolean isStdErr) throws Exception { ); ScriptOutput run = this.commands(runContext) - .addEnv(Map.of("PYTHONUNBUFFERED", "true")) + .addEnv(Map.of( + "PYTHONUNBUFFERED", "true", + "PIP_ROOT_USER_ACTION", "ignore" + )) .withCommands(commandsArgs) .run(); diff --git a/src/main/java/io/kestra/plugin/dbt/cli/Setup.java b/src/main/java/io/kestra/plugin/dbt/cli/Setup.java index 843a0c7..5612028 100644 --- a/src/main/java/io/kestra/plugin/dbt/cli/Setup.java +++ b/src/main/java/io/kestra/plugin/dbt/cli/Setup.java @@ -200,7 +200,10 @@ public ScriptOutput run(RunContext runContext) throws Exception { ); return commandsWrapper - .addEnv(Map.of("PYTHONUNBUFFERED", "true")) + .addEnv(Map.of( + "PYTHONUNBUFFERED", "true", + "PIP_ROOT_USER_ACTION", "ignore" + )) .withCommands(commandsArgs) .run(); }