client rebuilding in progress

This commit is contained in:
2026-03-04 12:27:52 +02:00
parent 2d34ec5634
commit ae9c29de1e
31 changed files with 908 additions and 467 deletions
@@ -15,6 +15,7 @@
package transport
import (
"cmp"
"context"
"errors"
"fmt"
@@ -75,7 +76,10 @@ func pingSingle(ctx context.Context, reg name.Registry, t http.RoundTripper, sch
resp.Body.Close()
}()
insecure := scheme == "http"
// If resp.Request is set, we may have followed a redirect,
// so we want to prefer resp.Request.URL.Scheme (if it's set)
// falling back to the original request's scheme.
insecure := cmp.Or(resp.Request, req).URL.Scheme == "http"
switch resp.StatusCode {
case http.StatusOK:
+1 -1
View File
@@ -30,7 +30,7 @@ github.com/fsnotify/fsnotify/internal
## explicit; go 1.18
github.com/go-viper/mapstructure/v2
github.com/go-viper/mapstructure/v2/internal/errors
# github.com/google/go-containerregistry v0.21.0
# github.com/google/go-containerregistry v0.21.2
## explicit; go 1.25.6
github.com/google/go-containerregistry/internal/and
github.com/google/go-containerregistry/internal/compression