Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (#615)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Oct 3, 2023
1 parent ad0f9a5 commit 7256822
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecr-login/cache/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package cache
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -123,7 +122,7 @@ func (f *fileCredentialCache) fullFilePath() string {
// This eliminates from reading partially written credential files, and reduces (but does not eliminate) concurrent
// file access. There is not guarantee here for handling multiple writes at once since there is no out of process locking.
func (f *fileCredentialCache) save(registryCache *RegistryCache) error {
file, err := ioutil.TempFile(f.path, ".config.json.tmp")
file, err := os.CreateTemp(f.path, ".config.json.tmp")
if err != nil {
return err
}
Expand Down

0 comments on commit 7256822

Please sign in to comment.