pulumi/changelog
bors[bot] a11ce54a86
Merge #12732
12732: fix(go/host): Use program directory r=abhinav a=abhinav

Follow up to https://github.com/pulumi/pulumi/pull/12727#discussion_r1175433156

The GetRequiredPlugins and GetProgramDependencies methods of the Go
language host always operate in the current directory of the plugin.
This is likely unintentional because the request message includes a Pwd
field specifying the program directory.

For comparison:

- The Python host also runs in the plugin directory
- The Node host correctly uses the program directory:
  via the Pwd field for GetProgramDependencies
  and the Program field for GetRequiredPlugins

The existing behavior likely happens to work because the plugin happens
to run inside the program directory, but that's not guaranteed.

This switches the Go language host to run queries inside the program
directory to guard against issues in the future.


Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-04-26 20:07:37 +00:00
..
pending Merge #12732 2023-04-26 20:07:37 +00:00
config.yaml Reorder scopes to be alphabetically ordered. 2022-11-10 16:54:37 -05:00