Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types.AuthConfig is deprecated in docker v25.x.x #691

Closed
yp05327 opened this issue Jan 24, 2024 · 2 comments
Closed

types.AuthConfig is deprecated in docker v25.x.x #691

yp05327 opened this issue Jan 24, 2024 · 2 comments

Comments

@yp05327
Copy link

yp05327 commented Jan 24, 2024

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.

@Wwwsylvia
Copy link
Member

Hi @yp05327 , it looks like your code is still using v1.2.4which does not include the latest dependency updates.
To use the latest commit 2afb687, you can run:

go get oras.land/oras-go@2afb6872ee1aefbdb5bfdbdaa15833cad8244b80

@yp05327
Copy link
Author

yp05327 commented Jan 25, 2024

Hi @Wwwsylvia, it worked. Thanks a lot.

@yp05327 yp05327 closed this as completed Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants