pulumi/pkg/backend/httpstate
bors[bot] 2957b6b1b3
Merge #11806
11806: all: Drop ioutil r=abhinav a=abhinav

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.

Specifically, the template and the template input
had to be updated manually.


Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-01-09 17:15:34 +00:00
..
client all: Drop ioutil 2023-01-06 16:35:14 -08:00
testdata Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
backend.go golangci-lint: Opt into nolintlint 2023-01-06 10:17:55 -08:00
backend_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
diffs.go Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
policypack.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
snapshot.go Reduce memory use for PULUMI_OPTIMIZED_CHECKPOINT_PATCH 2022-12-15 11:23:06 -05:00
snapshot_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
stack.go Pull NewServiceSecretsManager out of httpstate 2023-01-04 23:04:30 +00:00
state.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00
token_source.go Support PULUMI_OPTIMIZED_CHECKPOINT_PATCH protocol 2022-10-12 12:29:05 -04:00
token_source_test.go Disable token_source_test on windows (#10557) 2022-09-01 01:30:52 +02:00