-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate ioutil calls to io,os calls (#911)
The Go 1.19 and nearby versions marked these calls as deprecated. Clean them up with their documented replacements. Ran these commands to fix it up: ``` $ gofmt -w -r 'ioutil.TempFile -> os.CreateTemp' $(find . -type f -name '*.go'| grep -v "/vendor/") $ gofmt -w -r 'ioutil.ReadAll -> io.ReadAll' $(find . -type f -name '*.go'| grep -v "/vendor/") $ gofmt -w -r 'ioutil.WriteFile -> os.WriteFile' $(find . -type f -name '*.go'| grep -v "/vendor/") $ gofmt -w -r 'ioutil.TempDir -> os.MkdirTemp' $(find . -type f -name '*.go'| grep -v "/vendor/") ``` Then removing the `ioutil` import from the files that no longer use it. Oh, also ha to revert some gofmt changes in `verifier/contentsignature` that I'll ship separately.
- Loading branch information
Showing
16 changed files
with
80 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.