-
Notifications
You must be signed in to change notification settings - Fork 416
drupal-11/11.2.2 package update #60197
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
Conversation
octo-sts
bot
commented
Jul 21, 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 failed because there's a mismatch between the expected Git commit hash (4a1db0db3b144a42daa0887e904f942a55fe5b6b) and the actual commit hash found (965123445745f50c7fc001c72a96650518c267d2) for the tag '11.2.2'. This could be due to the tag being updated in the repository after the package definition was created, or an incorrect commit hash was specified in the package configuration. 🔍 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: drupal-11.yaml
Replacement: Content:
Replacement: Content: Click to expand fix analysisAnalysisAfter examining the similar fixed build failures, a clear pattern emerges. In all three cases, the issue was a mismatch between the expected Git commit hash specified in the melange YAML file and the actual commit hash found when checking out the specified tag. The fixes consistently involved updating the "expected-commit" value in the git-checkout step to match the actual commit hash that the tag points to. This pattern indicates that when a Git tag is updated in the upstream repository or when it points to a tag object instead of directly to a commit, the build system needs to be updated with the correct commit hash. In some cases, like with gitlab-runner, an entirely new package file was created for the new version. Click to expand fix explanationExplanationThe build is failing because the Drupal tag 11.2.2 in the Git repository is pointing to commit 965123445745f50c7fc001c72a96650518c267d2, but the melange YAML file is expecting commit 4a1db0db3b144a42daa0887e904f942a55fe5b6b. This mismatch can occur for several reasons:
By updating the expected-commit value to 965123445745f50c7fc001c72a96650518c267d2 in both git-checkout steps, we align the build configuration with the actual state of the upstream repository. The tag is being used correctly, but we need to update our expectation of which commit that tag resolves to. Note that we need to update both git-checkout steps since they both reference the same version tag. The first one is for the main drupal repository, and the second is for the recommended-project repository. Both should be using the same commit hash if they're referencing the same version tag. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |