chore: bump cli-extension-dep-graph to v2.7.2#7014
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This comment has been minimized.
This comment has been minimized.
Brings in a fix for Bazel target discovery: findTargets now uses `bazel query` (loading phase only) instead of `cquery`, avoiding crashes when a select() with no //conditions:default branch exists anywhere in the target pattern's transitive closure. buildDepGraph keeps cquery and gains a --bazel-platforms passthrough flag.
calhar-snyk
force-pushed
the
worktree-bump-dep-graph
branch
from
July 20, 2026 16:07
7870263 to
bac6c5b
Compare
PR Reviewer Guide 🔍
|
CatalinSnyk
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Submission Checklist
are release-note ready, emphasizing
what was changed, not how.
What does this PR do?
Bumps
github.com/snyk/cli-extension-dep-graph/v2fromv2.7.1tov2.7.2in bothcliv2/go.modandcliv2-private/go.mod(viago get+make tidy).This brings in snyk/cli-extension-dep-graph#224 (
fix(bazel): use query instead of cquery for target discovery):cqueryresolves everyselect()in a target pattern's transitive closure during analysis, even for targets unrelated to the one being resolved. Aselect()with no//conditions:defaultbranch anywhere under//...(e.g.rules_distroless'sdpkg_status) made target discovery fail outright on any host that satisfied neither branch — this crashed the plugin in production on a client's macOS machine.findTargets) now usesbazel query(loading phase only, never resolvesselect()), via a streamed--output=streamed_jsonprotodecoder read directly off the process's stdout pipe.buildDepGraph) still usescqueryby design (querywould flatten selects and over-report platform-specific deps), but gains a--bazel-platformsflag forwarded verbatim to bazel's own--platformsto pin a branch when needed.Where should the reviewer start?
cliv2/go.mod/cliv2/go.sumandcliv2-private/go.mod/cliv2-private/go.sum— the version bump itself.How should this be manually tested?
make build BUILD_MODE=publicbuilds successfully.cd cliv2 && make test— full Go unit suite passes.snyk test/ dep-graph generation against a Bazel project affected by the fixed crash (a target pattern whose transitive closure includes aselect()with no default branch, e.g. involvingrules_distroless'dpkg_status).What's the product update that needs to be communicated to CLI users?
N/A
Risk assessment (Low | Medium | High)?
Low — dependency bump only, confined to the Bazel target-discovery path in
cli-extension-dep-graph. Full Go build and test suite pass; no other code changes in this repo. Access to Bazel dependency resolution is behind a feature flag.