debian-forge-composer/internal/store
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
..
test store: verify that old versions of the store can still be unmarshalled 2020-06-03 00:30:01 +02:00
compose.go store: delete unused GetLocalTargetOptions() method 2022-07-01 18:55:01 +01:00
fixtures.go store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00
json.go Change RepoConfig.GPGKey to an array of key strings 2023-02-01 10:27:58 +01:00
json_test.go Update deprecated io/ioutil functions 2023-03-07 09:22:23 -08:00
store.go Change RepoConfig.GPGKey to an array of key strings 2023-02-01 10:27:58 +01:00
store_test.go tests: Add tests for new repo gpg support 2023-02-01 10:27:58 +01:00