-
Notifications
You must be signed in to change notification settings - Fork 416
ruby-3.2/3.2.9 package update #60585
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
ruby-3.2/3.2.9 package update #60585
Conversation
octo-sts
bot
commented
Jul 24, 2025
Signed-off-by: wolfi-bot <[email protected]>
🔄 Build Failed: Git Checkout Error
Build Details
Root Cause Analysis 🔍The build expects a specific Git commit hash (13f495dc2c98d0762d9af37e7143d2e2a07d9926) for the Ruby v3_2_9 tag, but the repository contains a different commit hash (8f611e0c46012e321b39efd629eb5f4f53976863) for that tag. This mismatch causes the build to fail as the verification check enforces strict commit hash matching. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixesSuggested ChangesFile: ruby-3.2.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe similar build failure (trufflehog.yaml) exhibits the same pattern as the current issue - a mismatch between the expected commit hash and the actual commit hash for a specific tag. In the fixed example, the solution was to update the expected-commit hash in the melange YAML file to match the actual commit hash at the specified tag (v3.88.17). The fix was straightforward: they simply replaced the old expected-commit hash with the new one that actually exists in the repository. This is consistent with Wolfi's principle of keeping packages up to date with upstream releases. Click to expand fix explanationExplanationThe build is failing because there's a mismatch between the expected Git commit hash (13f495dc2c98d0762d9af37e7143d2e2a07d9926) and the actual commit hash (8f611e0c46012e321b39efd629eb5f4f53976863) for the Ruby v3_2_9 tag. This is similar to the trufflehog example where the expected and actual commit hashes didn't match. The error message clearly states: "FAIL Expected commit 13f495dc2c98d0762d9af37e7143d2e2a07d9926 for v3_2_9, found 8f611e0c46012e321b39efd629eb5f4f53976863". This indicates that the Git repository tag v3_2_9 points to commit 8f611e0c46012e321b39efd629eb5f4f53976863, but our build configuration is expecting a different commit. This mismatch could happen for several reasons:
By updating the expected-commit hash to match the actual commit hash that the tag currently points to, we align our build expectations with the current state of the upstream repository, allowing the build to proceed. This maintains Wolfi's principle of staying up-to-date with upstream releases while ensuring we're building from the exact source commit that corresponds to the specified version. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
…version` for proper commit bumping
* Melange now only updates `expected-commit` in `git-checkout` when tags match either `${{package.version}}` or `${{vars.mangled-package-version}}` ([melange#2008](chainguard-dev/melange#2008))
Signed-off-by: Debasish Biswas <[email protected]>
Signed-off-by: Debasish Biswas <[email protected]>