Skip to content

fix: compare manifest digests correctly in update check#50

Merged
pablopunk merged 1 commit into
mainfrom
fix-update-digest-comparison
Apr 23, 2026
Merged

fix: compare manifest digests correctly in update check#50
pablopunk merged 1 commit into
mainfrom
fix-update-digest-comparison

Conversation

@pablopunk
Copy link
Copy Markdown
Owner

Follow-up to #48. The update check still reported 'update available' even when on latest because:

  1. Wrong digest source: docker inspect --format {{.Image}} returns the image config blob digest, but GHCR returns the manifest digest - different SHA256s that will never match. Switched to RepoDigests which contains the manifest digest.

  2. Tag sorting picked wrong tag: raw git SHA tags (e.g. ffb7ee42...) sorted alphabetically after date-prefixed tags, so remoteVersion showed a git SHA instead of the date tag. Filtered to only YYYY-MM-DD-sha format tags.

- Use RepoDigests (manifest digest) instead of .Image (config blob
  digest) so local and remote digests are comparable
- Filter tag list to date-prefixed tags only (YYYY-MM-DD-sha) so raw
  git SHA tags don't sort ahead of the real version
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
doce-dev-www Ready Ready Preview, Comment Apr 23, 2026 6:02pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 23, 2026

Warning

Rate limit exceeded

@pablopunk has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 55 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 55 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a1a753cc-f441-4492-9da4-be73f2a70fa8

📥 Commits

Reviewing files that changed from the base of the PR and between 361f1fa and 568547b.

📒 Files selected for processing (1)
  • src/actions/update.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot temporarily deployed to pr-50 April 23, 2026 18:02 Destroyed
@pablopunk pablopunk merged commit 0f21e2f into main Apr 23, 2026
8 checks passed
@pablopunk pablopunk deleted the fix-update-digest-comparison branch April 23, 2026 18:04
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.

1 participant