heroku / docker-registry-client

A Go API client for the v2 Docker Registry API
BSD 3-Clause "New" or "Revised" License
297 stars 225 forks source link

layer.go:85:9: cannot use digest ... #54

Closed kispaljr closed 5 years ago

kispaljr commented 6 years ago

I was trying to use this in my project, but after importing it into my code, the build broke with the error message in the title. After some investigation it turned out that the root cause is that dep picked the wrong version of the "github.com/docker/distribution" dependency. It picked the version with the v2.6.2 tag, most probably because this is the tag with the highest semantic version number. A working revision of the distribution package is pinned in Godeps/Godeps.json, but dep doesn't seem to respect that.

Adding a proper Gopkg.toml file to this project could solve the problem.

kispaljr commented 5 years ago

567645acfdf7e29494e38d4a88a1e209df31f2bb solved this issue