pulumi/pkg/util
Will Jones f0f7f74f17
Stream standard output and error when installing dependencies (#18404)
The `InstallDependencies` method of the language host gRPC interface
supports streaming back data for the standard output and error of the
processes being executed by the language host (e.g. `npm install` for
NodeJS). Presently however, we do not expose these streams in the
higher-level `LanguageHost` Go interface. This commit changes that,
having `LanguageHost`'s `InstallDependencies` method return a pair of
`io.Reader`s for standard output and error respectively, as well as a
channel that will be closed when the operation completes. This
transforms `InstallDependencies` to an asynchronous call and so call
sites are modified appropriately to drain the readers and block on the
`done` channel's closure. With this change, we can modify the language
conformance test server to capture standard output and error when
dependency installation goes wrong, making it easier to debug
conformance tests in the process.

Fixes #13941
2025-02-04 10:31:23 +00:00
..
afero Fix convert pcl copy 2023-04-14 22:04:50 +01:00
cancel all: Assert => Assertf 2023-03-03 14:37:43 -08:00
cmdutil Stream standard output and error when installing dependencies (#18404) 2025-02-04 10:31:23 +00:00
generate Update pulumiverse plugin list (#17891) 2024-12-02 13:24:53 +00:00
gsync Use a generic wrapper around `sync.Map` (#15878) 2024-04-09 10:56:25 +00:00
nosleep Update golangci-lint (#17972) 2024-12-10 11:50:38 +00:00
rpcdebug Remove deprecated Protobufs imports (#15158) 2024-01-17 09:35:20 +00:00
testutil all: Drop ioutil 2023-01-06 16:35:14 -08:00
tracing Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
validation Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
plugin.go Update pulumiverse plugin list (#17891) 2024-12-02 13:24:53 +00:00
plugin_test.go Refactor: move plugin kind to apitype (#15946) 2024-04-25 17:30:30 +00:00
pulumiverse_list.go Update pulumiverse plugin list (#17891) 2024-12-02 13:24:53 +00:00