Skip to content

fix(docker): keep registry hosts on non-Hub image names - #599

Open
vibgrate-team wants to merge 1 commit into
mainfrom
cursor/docker-registry-image-names-c224
Open

vibgrate-team wants to merge 1 commit into
mainfrom
cursor/docker-registry-image-names-c224

Conversation

@vibgrate-team

Copy link
Copy Markdown
Contributor

Summary

Dockerfile FROM lines and Compose image: lines dropped the registry host when they built a dependency row. ghcr.io/acme/api:1.4.0 was stored as acme/api, mcr.microsoft.com/dotnet/sdk:8.0 as dotnet/sdk, and quay.io/prometheus/node-exporter:v1.8.0 as prometheus/node-exporter, and each name was then compared with Docker Hub.

The recorded name now keeps the registry for any host that is not Docker Hub. Docker Hub images stay library/<image> or <namespace>/<image>, including docker.io, index.docker.io, and registry-1.docker.io. The tag lookup calls Docker Hub only for those names. Other registries stay unknown unless a package-version manifest already lists that exact name.

Related issues

Fixes #578

Checklist

  • pnpm test passes
  • pnpm lint is clean
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — identical input still produces identical graph.json / report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

nginx:1.27 and bitnami/redis:7.4 still record as library/nginx and bitnami/redis and still go to the Docker Hub tag API. Short tags such as 1.27 are not strict semver, so their drift stays unknown while latestStable is filled from Hub, which is the same comparison as before.

Open in Web Open in Cursor 

Dockerfile and Compose rows dropped the registry, so ghcr.io, mcr.microsoft.com,
and quay.io images were stored as Docker Hub names and compared with Hub tags.
Hub aliases still record as library/<image> or <namespace>/<image>. Other
registries keep their host and are not sent to the Docker Hub tag API.

Fixes #578

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
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 this pull request may close these issues.

Bug: registry host is dropped from image names, so ghcr.io / quay.io / mcr.microsoft.com images are looked up on Docker Hub

2 participants