pulumi/changelog/pending
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
..
20230418--cli-display--pulumi-cli-can-now-display-messages-provided-by-the-service.yaml Enable display of backend messages during updates 2023-04-21 14:44:40 -07:00
20230418--engine--support-propagating-more-resource-options-to-packaged-components.yaml engine: Propagate options to MLCs 2023-04-21 10:58:57 -07:00
20230418--pkg-testing--fix-failure-in-writing-a-package-json-for-test-overrides.yaml testing/ProgramTest: Don't always fail write package.json 2023-04-18 13:27:03 -07:00
20230418--pkg-testing--programtest-now-supports-exclude-protected-during-stack-cleanup.yaml testing/ProgramTest: Support exclude-protected at cleanup 2023-04-18 13:20:43 -07:00
20230418--sdk-go--support-new-options-on-packaged-components.yaml sdk/go: Propagate more resource options from provider.Construct 2023-04-21 10:58:59 -07:00
20230420--cli--speed-up-conversion-mapping-lookups-for-the-common-case-of-pulumi-names-matching-external-ecosystem-names.yaml Speed up mapping lookup 2023-04-26 16:38:01 +01:00
20230421--programgen--allow-using-option-t-in-range-expressions.yaml Allow using option(T) in range expressions 2023-04-21 12:18:23 +02:00
20230423--sdk-go--support-vendored-dependencies-for-pulumi-programs.yaml feat(go/host): Support vendored dependencies 2023-04-24 09:49:16 -07:00
20230424--auto-nodejs--add-excludeprotected-option-for-destroy.yaml [auto/nodejs] Add `excludeProtected` option for `destroy` 2023-04-24 12:12:11 -07:00
20230424--cli--fix-destroy-without-project-file.yaml Fix destroy without project file 2023-04-24 16:14:56 +01:00
20230424--sdk-go--ensure-that-dependency-searches-happen-in-the-pulumi-program-directory.yaml fix(go/host): Use program directory 2023-04-24 10:13:21 -07:00
20230425--auto-nodejs--add-refresh-option-for-preview.yaml Add --refresh flag to preview for NodeJS Automation API 2023-04-25 12:05:17 -04:00