-
Notifications
You must be signed in to change notification settings - Fork 417
jitsucom-bulker/2.11.913-r0: cve remediation #72259
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
jitsucom-bulker/2.11.913-r0: cve remediation #72259
Conversation
<!--ci-cve-scan:must-fix: GHSA-9mj6-hxhv-w67j-->
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The gobump tool is attempting to update the package github.com/go-viper/mapstructure/v2 to version v2.4.0, but this package is not declared as a dependency in the go.mod file. This suggests either the package name is incorrect, it was removed from dependencies, or it needs to be added to the 'replaces' section of the build 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 fixesSuggested ChangesFile: jitsucom-bulker.yaml
Replacement: Content:
Replacement: Content:
Replacement: Content:
Replacement: Content:
Replacement: Content: Click to expand fix analysisAnalysisThe similar build failures all follow the same pattern: the go/bump tool attempts to update a package that doesn't exist in the go.mod file. In all three examples, the fix was to remove the problematic package from the deps list in the go/bump step. This indicates that these packages either don't exist in the project's dependencies, have been renamed/moved, or are no longer needed. The pattern shows that when gobump cannot find a package in go.mod, the solution is typically to remove it from the dependency update list rather than adding it to replaces. Click to expand fix explanationExplanationThis fix addresses the root cause of the build failure by removing the problematic package github.com/go-viper/mapstructure/v2 from all go/bump dependency lists. The error indicates this package is not found in any of the go.mod files across the different modules (kafkabase, ingest, admin, bulkerapp, bulkerlib). Based on the patterns from similar fixes, when gobump cannot locate a package in go.mod, it means the package either doesn't exist as a dependency in those modules, has been renamed, or is no longer needed. Rather than trying to force the package into the build through replaces (which would be inappropriate if the package isn't actually used), the correct approach is to remove it from the dependency update list. This allows the build to proceed with the actual dependencies that exist in each module's go.mod file. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
Signed-off-by: Ben Tasker <2900301+bentasker@users.noreply.github.com>
jitsucom-bulker/2.11.913-r0: fix GHSA-9mj6-hxhv-w67j
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/jitsucom-bulker.advisories.yaml
"Breadcrumbs" for this automated service