pulumi/sdk/go/common/resource
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
..
config Cleaning up a few pkg/errors uses 2022-11-02 14:20:44 +00:00
plugin all: Drop ioutil 2023-01-06 16:35:14 -08:00
testing Do not FailNow() in generators (#8469) 2021-11-19 20:39:11 -05:00
alias.go feat(engine): Adds structured alias support to the engine 2022-10-11 17:56:32 -04:00
alias_test.go feat(engine): Adds structured alias support to the engine 2022-10-11 17:56:32 -04:00
asset.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
asset_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08: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
mapper_test.go Allow decoding *asset and *archive values 2022-10-17 13:28:13 -07:00
properties.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
properties_diff.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
properties_diff_test.go Specify fields on engine diff (#8488) 2021-11-30 12:25:27 -08:00
properties_path.go Cleaning up a few pkg/errors uses 2022-11-02 14:20:44 +00:00
properties_path_test.go Fix concurrent access to PropertyValue in TestPropertyPath (#9553) 2022-05-05 14:38:17 +01:00
properties_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
resource_goal.go Add DeletedWith resource option 2022-10-31 12:03:18 +02:00
resource_id.go Cleaning up a few pkg/errors uses 2022-11-02 14:20:44 +00:00
resource_id_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08: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 sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08: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 ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
urn_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00