lilydjwg / nvchecker

New version checker for software releases
MIT License
439 stars 70 forks source link

Missing support for paging in container registry tag list #189

Closed sfudeus closed 3 years ago

sfudeus commented 3 years ago

I noticed that the tag listing for container registries currently is not capable of processing paginated resources.

Example: Using

["prometheus-operator/prometheus-operator"]
source = "container"
container = "prometheus-operator/prometheus-operator"
registry = "quay.io"

currently leads to v0.47.0 as latest version, while there are v0.47.1 and v0.48.0 and v0.48.1. This seems to be caused by missing support for pagination, which is documented in https://docs.docker.com/registry/spec/api/#listing-image-tags.

Using curl and following the Link-header eventually (in this example with only a 2nd request) leads to the full list of tags.

lilydjwg commented 3 years ago

The docs say that endpoint will return all the tags, but in reality no :-(