feat: include workspace in output of --print-effective-graph#6727
Open
james-snyk wants to merge 1 commit intomainfrom
Open
feat: include workspace in output of --print-effective-graph#6727james-snyk wants to merge 1 commit intomainfrom
james-snyk wants to merge 1 commit intomainfrom
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. |
953e0f8 to
ab82347
Compare
mcombuechen
reviewed
Apr 15, 2026
| }; | ||
|
|
||
| // Only add workspace field if it's a workspace project | ||
| if (workspace) { |
Contributor
There was a problem hiding this comment.
not sure the if is needed, if it's undefined it will be dropped from the JSONL anyway.
This comment has been minimized.
This comment has been minimized.
ab82347 to
ed6a194
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
PR Reviewer Guide 🔍
|
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?
This PR adds
workspaceas an optional output property to the JSONL payloads ofsnyk test --print-effective-graph|--print-effective-graph-with-errors. This is so we can produce dep-graphs plus exhaustive plugin metadata in cli-extension-dep-graph, to then use it for test and monitor migration to the Unified Test API.