pulumi/sdk/go/common/resource
Joe Duffy 61f27fb51a
Fix #3982, missing output which lacks newlines (#8671)
* 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
2022-01-03 14:39:10 -08:00
..
config Assertion fix in config key generation (#6902) 2021-08-02 12:22:09 -07:00
plugin Fix #3982, missing output which lacks newlines (#8671) 2022-01-03 14:39:10 -08:00
testing Do not FailNow() in generators (#8469) 2021-11-19 20:39:11 -05:00
asset.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
asset_test.go Skip flaky tests for now (#8420) 2021-11-15 15:17:20 -05:00
custom_timeouts.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
errors.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
properties.go Switch from golint to revive (#8010) 2021-09-21 10:00:44 -07:00
properties_diff.go Specify fields on engine diff (#8488) 2021-11-30 12:25:27 -08:00
properties_diff_test.go Specify fields on engine diff (#8488) 2021-11-30 12:25:27 -08:00
properties_path.go [sdk/go] Add Contains method to PropertyPath (#7354) 2021-06-24 08:49:09 -06:00
properties_path_test.go [sdk/go] Add Contains method to PropertyPath (#7354) 2021-06-24 08:49:09 -06:00
properties_test.go Initial support for (un)marshaling output values (#7861) 2021-09-13 09:05:31 -07:00
resource_goal.go Update a misleading comment. (#8491) 2021-11-24 10:37:08 -08:00
resource_id.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
resource_id_test.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
resource_operation.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
resource_state.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
stack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
status.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
urn.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
urn_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00