diff --git a/docs/registry.go b/docs/registry.go index 0ae37f7a..131b0270 100644 --- a/docs/registry.go +++ b/docs/registry.go @@ -478,10 +478,7 @@ type Registry struct { authConfig *auth.AuthConfig } -func NewRegistry(root string) *Registry { - // If the auth file does not exist, keep going - authConfig, _ := auth.LoadConfig(root) - +func NewRegistry(root string, authConfig *auth.AuthConfig) *Registry { httpTransport := &http.Transport{ DisableKeepAlives: true, Proxy: http.ProxyFromEnvironment,