Fix oras v2 trying to parse empty tmp file as JSON

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
Matheus Pimenta 2025-05-23 21:12:10 +01:00 committed by Terry Howe
parent 4aa31dcc21
commit a86f542860
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func ClientGenerator(tlsConfig *tls.Config, isLogin, insecureHTTP bool) (*regist
}
var errs []error
rClient, err := newClient(credentialsFile.Name(), tlsConfig, insecureHTTP)
rClient, err := newClient("", tlsConfig, insecureHTTP)
if err != nil {
errs = append(errs, err)
// attempt to delete the temporary file