pulumi/sdk/go/common/util/rpcutil
Abhinav Gupta 1158d4acee
all: Drop ioutil
Stop using io/ioutil across the entire repository.
The io/ioutil package was deprecated in Go 1.16 (2021-02)
with replacements provided in other packages.
Specifically:

    ioutil.Discard   => io.Discard
    ioutil.NopCloser => io.NopCloser
    ioutil.ReadAll   => io.ReadAll
    ioutil.ReadFile  => os.ReadFile
    ioutil.TempDir   => os.MkdirTemp
    ioutil.TempFile  => os.CreateTemp
    ioutil.WriteFile => os.WriteFile

This change switches all of these entities
across the repository.

Following this change,
the only references to ioutil are in schema files:

    % rg -l ioutil
    pkg/codegen/testing/test/testdata/aws-4.26.0.json
    pkg/codegen/testing/test/testdata/aws-4.36.0.json
    pkg/codegen/testing/test/testdata/aws-4.37.1.json
    pkg/codegen/testing/test/testdata/aws-5.4.0.json
    pkg/codegen/testing/test/testdata/aws-5.16.2.json

The bulk of this change was generated automatically
with manual touch ups afterwards.
2023-01-06 16:35:14 -08:00
..
rpcerror ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
health.go Add tracing to `npm install` and fix orphan tracing (#10518) 2022-09-12 17:42:27 -04:00
interceptor.go Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
pty.go Move InstallDependencies to the language plugin (#9294) 2022-04-03 15:54:59 +01:00
pty_windows.go Move InstallDependencies to the language plugin (#9294) 2022-04-03 15:54:59 +01:00
serve.go Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
writer.go Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
writer_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00