debian-forge-composer/cmd/osbuild-composer
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
..
testdata templates/composer: Verify against mass sso and rh sso 2022-02-24 09:48:12 +01:00
composer.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
config.go distro: Add azure-sap-rhui image type to RHEL8 2022-11-18 16:53:22 +01:00
config_test.go distro: Add azure-sap-rhui image type to RHEL8 2022-11-18 16:53:22 +01:00
main.go composer: add support for logrus syslog hook 2022-05-12 11:02:27 +02:00