-
Notifications
You must be signed in to change notification settings - Fork 416
ruby-3.3/3.3.9 package update #60593
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.3/3.3.9 package update #60593
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 (b200bad6cd40d08e9f33b93e1a85c270b337867c) for the Ruby v3_3_9 tag, but found a different commit hash (f5c772fc7cbe9f5b58d962939fcb1c7e3fb1cfa6). This mismatch caused the build to fail as the expected commit validation check failed. 🔍 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: ruby-3.3.yaml
Replacement: Click to expand fix analysisAnalysisThe pattern in the similar fixed build failures is clear: in all three examples, the build failed because the expected Git commit hash in the Melange YAML file didn't match the actual commit hash for the specified tag in the repository. This mismatch occurs because the upstream repository's tags may have been updated or moved since the package definition was created. Each fix involved updating the Click to expand fix explanationExplanationThe build is failing because the expected Git commit hash in the Melange YAML file (b200bad6cd40d08e9f33b93e1a85c270b337867c) doesn't match the actual commit hash that the v3_3_9 tag points to in the Ruby repository (f5c772fc7cbe9f5b58d962939fcb1c7e3fb1cfa6). This mismatch can occur for several reasons:
The error message explicitly states that the build expects commit b200bad6cd40d08e9f33b93e1a85c270b337867c for the v3_3_9 tag, but found f5c772fc7cbe9f5b58d962939fcb1c7e3fb1cfa6. The simplest solution is to update the expected-commit value to match the current commit hash that the tag points to. The upstream change log confirms that there have been numerous bug fixes between versions, which explains why the commit hash might have changed. By updating the expected-commit value, we're acknowledging these changes and allowing the build to proceed with the current state of the upstream repository. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
…version` for proper commit bumpin
* 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))
* Previously we used a custom var `underscore-package-version`, which is no longer recognized by the updater logic
* This change renames `underscore-package-version` to `mangled-package-version` so it integrates correctly with Melange's update mechanism and enables automatic commit updates
* fix the commit SHA
Signed-off-by: Debasish Biswas <[email protected]>