types.AuthConfig is deprecated in docker v25.x.x
yp05327 opened this issue · comments
When I build my application, I got this error:
# oras.land/oras-go/pkg/auth/docker
/go/pkg/mod/oras.land/oras-go@v1.2.4/pkg/auth/docker/login_tls.go:44:20: undefined: types.AuthConfig
/go/pkg/mod/oras.land/oras-go@v1.2.4/pkg/auth/docker/login_tls.go:62:131: undefined: types.AuthConfig
/go/pkg/mod/oras.land/oras-go@v1.2.4/pkg/auth/docker/login_tls.go:122:32: undefined: types.AuthConfig
/go/pkg/mod/oras.land/oras-go@v1.2.4/pkg/auth/docker/login.go:54:16: undefined: types.AuthConfig
Then I found that types.AuthConfig
is deprecated in github.com/docker/docker@v25.x.x
.
https://pkg.go.dev/github.com/docker/docker@v24.0.7+incompatible/api/types#AuthConfig
But github.com/docker/docker
was updated from v24.0.7 to v25.0.0 in #689 yesterday.
Hi @Wwwsylvia, it worked. Thanks a lot.