-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass correct working directory to RunPlugin (#17763)
RunPlugin expects the working directory of the program to be passed in in the plugin request. This was the case until #15191. In that PR we switched from passing pwd (which is the same as `ctx.Pwd` a layer above) to minfo.GetProgramDirectory(), which is the path from which the plugin is executed. Fix this by passing in `info.WorkingDirectory`, which a layer above is `ctx.Pwd`. Add a test for this as well to make sure we're not regressing this again. Likely nobody noticed this, because most plugins probably don't rely on this path, and most providers are not being run using `RunPlugin`.
- Loading branch information
Showing
3 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/pending/20241113--engine--pass-correct-working-directory-to-runplugin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: fix | ||
scope: engine | ||
description: Pass correct working directory to RunPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters