pulumi/sdk/go/common
Thomas Gummerer 9a50879453
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
https://github.com/pulumi/pulumi/pull/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`.
2024-11-14 22:10:28 +00:00
..
apitype Move EscEnvironmentMetadata to apitype (#17720) 2024-11-08 14:32:13 +00:00
channel Send all events to the engine event stream (#14607) 2023-11-20 21:55:59 +00:00
constant Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
diag allow InputPropertyErrors from Calls (#17567) 2024-11-07 09:56:04 +00:00
encoding all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
env Enable Copilot link by default (#17293) 2024-09-20 01:15:16 +00:00
promise Add tests to sdk/go/common/promise for coverage (#17197) 2024-09-08 21:07:08 +00:00
resource pass correct working directory to RunPlugin (#17763) 2024-11-14 22:10:28 +00:00
slice Nit: Use slice.Prealloc in slice.Map and slice.MapError (#17631) 2024-10-29 15:35:55 +00:00
testing Allow cancelling operations with SIGTERM (#17467) 2024-10-07 13:49:04 +00:00
tokens Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00
tools Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Bump gRPC dependencies and migrate `grpc.Dial` (#17701) 2024-11-06 18:36:10 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Implement plugin download cancellation (#17621) 2024-11-12 18:04:25 +00:00