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

Parsing images with digest is not clear #11

Open
AbdelrahmanElawady opened this issue May 7, 2024 · 1 comment
Open

Parsing images with digest is not clear #11

AbdelrahmanElawady opened this issue May 7, 2024 · 1 comment

Comments

@AbdelrahmanElawady
Copy link

Parsing images with digest like docker.io/library/nginx@sha256:ed6d2c43c8fbcd3eaa44c9dab6d94cb346234476230dc1681227aa72d07181ee using Parse doesn't work without having blank imports for a package that registers hash functions, for example having something like import _ "crypto/sha256".

go-digest mention that in their readme as it can lead to some confusion.

IMO, I think it should be mentioned somewhere that you need to have these imports or referencing go-digest for example as it is the package where this behavior originates but that's up to you.

playground link.

Thanks!

@milosgajdos
Copy link
Member

Thanks, yeah this IS annoying. Mind opening a PR for README / godoc?

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

Successfully merging a pull request may close this issue.

2 participants