-
Notifications
You must be signed in to change notification settings - Fork 419
sonarqube/25.7.0.110598 package update #58455
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
sonarqube/25.7.0.110598 package update #58455
Conversation
octo-sts
bot
commented
Jul 7, 2025
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍The patch 'sonar-eclipse-GHSA-vrpq-qp53-qv56.patch' could not be applied to the build.gradle file. The patch was likely created for a different version of the file than what exists in the checked out version (tag 25.7.0.110598) of the SonarQube repository. 🔍 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: sonarqube.yaml
Replacement:
Click to expand fix analysisAnalysisLooking at the similar fixed build failures, I observe a common pattern: patch application failures occur when the target file has changed in the newer version of the software, causing the patch context to no longer match. In both examples, the fixes involved either:
The current failure is attempting to apply a patch to build.gradle in SonarQube 25.7.0.110598, but the patch is failing because the file has likely changed from the version the patch was originally created for. Click to expand fix explanationExplanationThe patch 'sonar-eclipse-GHSA-vrpq-qp53-qv56.patch' is failing to apply to build.gradle because the file content in SonarQube version 25.7.0.110598 doesn't match what the patch expects. This is a common issue when patches are created for specific versions but then applied to newer versions where the surrounding code has changed. Based on the error message "Hunk #1 FAILED at 469", we can see that the patch is trying to modify line 469 in build.gradle, but that line or its context has changed in the current version. The suggested fix removes the problematic patch from the patch step and instead applies the necessary changes directly using sed. This approach is more resilient to version changes as it targets the specific dependency version that needs to be updated rather than relying on exact line numbers and context. The security fix is likely related to updating a vulnerable dependency version. By directly modifying the build.gradle file to update the dependency version, we achieve the same security improvement that the patch was intended to provide, but in a way that works with the current file structure. This approach is similar to Fix Example #0, where the problematic patch was removed when updating to a newer version. The key difference is that we're still applying the security fix, just using a different method. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|