-
Notifications
You must be signed in to change notification settings - Fork 416
crane/0.20.4 package update #53817
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
crane/0.20.4 package update #53817
Conversation
octo-sts
bot
commented
May 20, 2025
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
🔄 Build Failed: Git Checkout Error
Build Details
Root Cause Analysis 🔍The build is attempting to clone the go-containerregistry repository with branch 'v0.20.4', but v0.20.4 is likely a tag, not a branch. The git checkout command is incorrectly using --branch flag for what should be a tag checkout. In git, tags and branches are different references, and using the wrong flag causes this error. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixes
Suggested ChangesFile: crane.yaml
Replacement: Click to expand fix analysisAnalysisAnalyzing the similar fixed build failures, I found a consistent pattern: all failures involve Git checkouts where tags are incorrectly treated as branches. This is evident in all three examples where build failures occurred when trying to use the
The key insight is that when using the Click to expand fix explanationExplanationThe build failure is occurring because the git-checkout step is incorrectly handling the tag reference. When examining the error message: "fatal: Remote branch v0.20.4 not found in upstream origin", it's clear that Git is trying to find a branch named 'v0.20.4' instead of looking for a tag. The Melange git-checkout action needs to be configured correctly to handle tags. By specifying both
This approach works because:
The fix doesn't require changing the tag value itself since 'v0.20.4' appears to be the correct tag format for this repository (as confirmed by the update section which uses 'strip-prefix: v'). The issue is purely in how the git-checkout action is configured to handle the reference. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
It looks like update moved the tag to a different hash Signed-off-by: Ben Tasker <2900301+bentasker@users.noreply.github.com>