2022-01-05 21:33:28 +00:00
|
|
|
module github.com/pulumi/pulumi/tests/printf/go
|
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 22:39:10 +00:00
|
|
|
|
2022-09-14 03:02:19 +00:00
|
|
|
go 1.18
|
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 22:39:10 +00:00
|
|
|
|
2022-09-14 03:02:19 +00:00
|
|
|
require github.com/pulumi/pulumi/sdk/v3 v3.40.1
|
|
|
|
|
|
|
|
require (
|
2024-01-02 18:41:06 +00:00
|
|
|
dario.cat/mergo v1.0.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/Microsoft/go-winio v0.6.1 // indirect
|
|
|
|
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
|
|
|
|
github.com/blang/semver v3.5.1+incompatible // indirect
|
|
|
|
github.com/cheggaaa/pb v1.0.29 // indirect
|
2024-01-16 08:59:57 +00:00
|
|
|
github.com/cloudflare/circl v1.3.7 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/djherbis/times v1.5.0 // indirect
|
2023-02-28 23:27:30 +00:00
|
|
|
github.com/emirpasic/gods v1.18.1 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
|
|
|
github.com/go-git/go-billy/v5 v5.5.0 // indirect
|
|
|
|
github.com/go-git/go-git/v5 v5.11.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/gofrs/uuid v4.2.0+incompatible // indirect
|
|
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
2023-07-05 21:37:23 +00:00
|
|
|
github.com/golang/glog v1.1.0 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
2023-07-05 21:37:23 +00:00
|
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
|
|
|
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
|
|
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
|
|
|
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
|
|
|
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
2023-02-28 23:27:30 +00:00
|
|
|
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/mattn/go-colorable v0.1.12 // indirect
|
|
|
|
github.com/mattn/go-runewidth v0.0.13 // indirect
|
|
|
|
github.com/mitchellh/go-ps v1.0.0 // indirect
|
|
|
|
github.com/opentracing/basictracer-go v1.1.0 // indirect
|
|
|
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
2023-02-28 23:27:30 +00:00
|
|
|
github.com/pjbgf/sha1cd v0.3.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
|
|
github.com/pkg/term v1.1.0 // indirect
|
|
|
|
github.com/rivo/uniseg v0.2.0 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
|
|
|
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
|
|
|
|
github.com/sergi/go-diff v1.2.0 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/skeema/knownhosts v1.2.1 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/spf13/cobra v1.5.0 // indirect
|
|
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
github.com/stretchr/objx v0.5.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
|
|
|
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
|
|
|
|
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
|
|
|
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
2023-02-28 23:27:30 +00:00
|
|
|
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
go.uber.org/atomic v1.9.0 // indirect
|
2023-12-20 09:14:29 +00:00
|
|
|
golang.org/x/crypto v0.17.0 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
golang.org/x/mod v0.12.0 // indirect
|
|
|
|
golang.org/x/net v0.19.0 // indirect
|
2023-12-20 09:14:29 +00:00
|
|
|
golang.org/x/sys v0.15.0 // indirect
|
|
|
|
golang.org/x/term v0.15.0 // indirect
|
|
|
|
golang.org/x/text v0.14.0 // indirect
|
2024-01-02 18:41:06 +00:00
|
|
|
golang.org/x/tools v0.13.0 // indirect
|
2023-07-26 18:00:25 +00:00
|
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect
|
2023-10-28 15:56:28 +00:00
|
|
|
google.golang.org/grpc v1.57.1 // indirect
|
2024-03-14 07:52:34 +00:00
|
|
|
google.golang.org/protobuf v1.33.0 // indirect
|
2022-09-14 03:02:19 +00:00
|
|
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
|
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
|
|
lukechampine.com/frand v1.4.2 // indirect
|
|
|
|
sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 // indirect
|
|
|
|
)
|