debian-forge-composer/internal/distro
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
..
distro_test_common Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
fedora distro/fedora: add open-vm-tools to vmdk package set 2023-03-01 14:35:56 +01:00
rhel7 distro: pass all repos to initializeManifest 2023-02-23 16:22:42 +01:00
rhel8 distro: pass all repos to initializeManifest 2023-02-23 16:22:42 +01:00
rhel9 internal: FIXME notes for container package set 2023-02-23 16:22:42 +01:00
test_distro distro: rename osPkgsKey from "packages" to "os" 2023-02-23 16:22:42 +01:00
distro.go cloudapi: Add subscription option for rhc 2023-02-09 09:41:15 +01:00
distro_test.go distro/test: add new test for pipeline-specific repos 2023-02-23 16:22:42 +01:00
image_config.go manifest: support force-relabel for SELinux in image config 2023-01-25 20:37:12 +01:00
image_config_test.go common: merge all *ToPtr methods to one generic ToPtr 2023-01-09 14:03:18 +01:00