-
Notifications
You must be signed in to change notification settings - Fork 416
binutils/2.45 package update #60827
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
binutils/2.45 package update #60827
Conversation
octo-sts
bot
commented
Jul 27, 2025
🔄 Build Failed: Git Checkout Error
Build Details
Root Cause Analysis 🔍The build expected a specific commit hash (815d9a14cbbb3b81843f7566222c87fb22e7255d) when checking out the binutils-2_45 tag, but found a different commit hash (2bc7af1ff7732451b6a7b09462a815c3284f9613). This indicates that the Git repository tag may have been updated or force-pushed since the package definition was created. 🔍 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: binutils.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe pattern observed across all similar fixed build failures is that the Git repository tag was updated or force-pushed, causing a mismatch between the expected commit hash and the actual commit hash. In all three examples, the solution was to update the expected-commit hash in the melange YAML file to match the current commit hash for the specified tag. Some fixes also involved incrementing the epoch or version number to signal a package update, though you've asked to ignore epoch bumps. The key pattern is keeping the expected-commit hash in sync with the current state of the repository tag. Click to expand fix explanationExplanationThe build is failing because the expected commit hash (815d9a14cbbb3b81843f7566222c87fb22e7255d) for the binutils-2_45 tag no longer matches the actual commit hash (2bc7af1ff7732451b6a7b09462a815c3284f9613) in the repository. This discrepancy occurs when the upstream repository either retagged the binutils-2_45 release or force-pushed changes to the tag. By updating the expected-commit hash to match the current commit that the tag points to (2bc7af1ff7732451b6a7b09462a815c3284f9613), we're telling the build system to expect the new commit hash instead of the old one. This simple change aligns the package definition with the current state of the upstream repository. This is a common scenario in Git-based package management where tags in upstream repositories can sometimes change. The Wolfi build system is correctly detecting this change and preventing a potentially unexpected build by requiring an explicit acknowledgment of the new commit hash. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
dd3490a to
42bf818
Compare