mirror of https://github.com/pulumi/pulumi.git
61f27fb51a
* Fix #3982, missing output which lacks newlines If the last line printed to stdout or stderr was missing a terminating newline, it would go entirely missing (in all languages). The reason for this is a bug in the engine's handling of plugin outputs: Go's Reader.ReadString('\n') returns a string containing what was read and/or an error; if the string terminated in a '\n', the error is nil, and the entire line is returned; if the stream ends, however, a non-nil error is returned *and* what was read is returned, even though it wasn't terminated in a newline. The fix is simple: instead of ignoring that text, we use it, and *then* exit the read-loop. Also added some test cases since this is subtle and easy to regress. * Add a changelog entry |
||
---|---|---|
.. | ||
analyzer.go | ||
analyzer_plugin.go | ||
check.go | ||
config_source.go | ||
context.go | ||
doc.go | ||
host.go | ||
host_server.go | ||
langruntime.go | ||
langruntime_plugin.go | ||
plugin.go | ||
plugin_test.go | ||
provider.go | ||
provider_plugin.go | ||
provider_plugin_test.go | ||
provider_server.go | ||
provider_test.go | ||
rpc.go | ||
rpc_rapid_test.go | ||
rpc_test.go |