pulumi/sdk/go/common/workspace
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.go typing made optional in hierarchical config and relaxed stack config validation 2022-10-30 23:42:39 +01:00
creds.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
creds_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
loaders.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
paths.go Apply project config to stack config when appropriate 2022-09-21 15:52:14 +02:00
paths_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
plugins.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
plugins_install_nodejs_test.go ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
plugins_install_python_test.go ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
plugins_install_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
plugins_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
project.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
project.json typing made optional in hierarchical config and relaxed stack config validation 2022-10-30 23:42:39 +01:00
project_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
settings.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
templates.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
templates_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
workspace.go all: Drop ioutil 2023-01-06 16:35:14 -08:00