-
Notifications
You must be signed in to change notification settings - Fork 419
go-licenses/2.0.0 package update #64870
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
Sep 2, 2025
Signed-off-by: wolfi-bot <[email protected]>
🩹 Build Failed: Patch Application Failed
Build Details
Root Cause Analysis 🔍Multiple patch hunks failed to apply to the target files (go.mod, go.sum, licenses/git.go, licenses/git_test.go). The patch appears to be incompatible with the current version of the source code, indicating that the patch was created for a different version of the codebase than what was checked out (tag v2.0.0). 🔍 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: go-licenses.yaml
Content: File: go-licenses/go-git.patch
Click to expand fix analysisAnalysisThe similar fixes show a clear pattern: when patch application fails due to patches being already applied, outdated, or incompatible with the new version, the solution is to either update the patch content to match the new codebase or remove the patch entirely if it's no longer needed. In Fix Examples #0 and #1, the patches were updated to match newer versions of the source code with different line contexts. In Fix Example #2, the patch was completely removed because the issue it addressed was already fixed upstream in the newer version. All fixes also updated the version and expected-commit to point to the correct source version. Click to expand fix explanationExplanationThe current build failure occurs because the go-git.patch was created for an older version of the go-licenses codebase and is incompatible with v2.0.0. The patch is failing to apply to multiple files (go.mod, go.sum, licenses/git.go, licenses/git_test.go), indicating significant changes in the upstream codebase. Based on the upstream changelog, v2.0.0 includes major changes like adding '/v2 to module and imports', dependency upgrades, and performance improvements that likely resolve the issues the original patch was meant to address. Following the pattern from Fix Example #2, where a patch was removed because the upstream version already included the fix, the best approach is to remove the patch entirely and rely on the upstream v2.0.0 release. The go/bump step that follows will handle any additional dependency updates needed. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Ajay Kemparaj <[email protected]>
Pull request was closed
|
superseded by #65557 |