Skip to content

Commit

Permalink
fix: root warning
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-geller committed Jan 25, 2024
1 parent c47686b commit 794df49
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/main/java/io/kestra/plugin/dbt/cli/AbstractDbt.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/io/kestra/plugin/dbt/cli/DbtCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/io/kestra/plugin/dbt/cli/Setup.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 794df49

Please sign in to comment.