debian-forge-composer/cmd/osbuild-worker
Brian C. Lane 7a4bb863dd Update deprecated io/ioutil functions
ioutil has been deprecated since go 1.16, this fixes all of the
deprecated functions we are using:

ioutil.ReadFile -> os.ReadFile
ioutil.ReadAll -> io.ReadAll
ioutil.WriteFile -> os.WriteFile
ioutil.TempFile -> os.CreateTemp
ioutil.TempDir -> os.MkdirTemp

All of the above are a simple name change, the function arguments and
results are exactly the same as before.

ioutil.ReadDir -> os.ReadDir

now returns a os.DirEntry but the IsDir and Name functions work the
same. The difference is that the FileInfo must be retrieved with the
Info() function which can also return an error.

These were identified by running:
golangci-lint run --build-tags=integration ./...
2023-03-07 09:22:23 -08:00
..
config.go worker: allow configuring number of upload threads for Azure 2023-03-03 18:15:53 +01:00
config_test.go worker: allow configuring number of upload threads for Azure 2023-03-03 18:15:53 +01:00
jobimpl-awsec2.go worker: Define new jobs to handle copying and resharing of images 2022-08-30 16:14:52 +02:00
jobimpl-container-resolve.go worker: Remove ellipsis operator from clienterrors.Error 2022-08-03 13:51:52 +02:00
jobimpl-depsolve.go osbuild-worker: add dnf-json error reason to depsolve job error 2023-01-06 13:55:04 +01:00
jobimpl-koji-finalize.go worker: fix reporting the import error to composer 2022-12-01 20:59:30 +01:00
jobimpl-koji-init.go worker: Remove ellipsis operator from clienterrors.Error 2022-08-03 13:51:52 +02:00
jobimpl-osbuild.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
jobimpl-ostree-resolve.go osbuild-worker: correctly pass ostree error details 2022-11-26 00:12:52 +00:00
main.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00