Skip to content

Commit

Permalink
patch fix for gar repo parsing (#4366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Mar 5, 2024
1 parent 537c4ea commit 7ac0983
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cli/cmd/docker/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ func (a *AuthGetter) GetGARCredentials(ctx context.Context, serverURL string, pr

cachedEntry := a.Cache.Get(serverURL)

if !strings.HasPrefix(serverURL, "https://") {
serverURL = "https://" + serverURL
}

parsedURL, err := url.Parse(serverURL)
if err != nil {
return "", "", err
Expand Down Expand Up @@ -396,7 +392,6 @@ func (f *FileCredentialCache) save(registryCache *RegistryCache) error {
}

_, err = file.Write(buff)

if err != nil {
file.Close()
os.Remove(file.Name())
Expand Down

0 comments on commit 7ac0983

Please sign in to comment.